Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 56ae4ae

Browse files
committed
Fixed bug
* Fixed error in case of call method getIdps() with unused tag
1 parent 7dfc1ec commit 56ae4ae

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
[Fixed]
6+
- Fixed error in case of call method getIdps() with unused tag
57

68
## [v3.0.1]
79
[Fixed]

lib/DiscoTemplate.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ public function getPreferredIdp()
4444
*/
4545
public function getIdps($tag = 'misc')
4646
{
47-
return $this->data['idplist'][$tag];
47+
if (isset($this->data['idplist'][$tag])) {
48+
return $this->data['idplist'][$tag];
49+
} else {
50+
return array();
51+
}
4852
}
4953

5054
/**

0 commit comments

Comments
 (0)