diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2021-11-23 14:49:44 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2021-11-23 14:49:44 +0000 |
| commit | d2bbb76d7a19383598ffee534fce84a4f5f95ee4 (patch) | |
| tree | 042742988e07c40e5c8f268d5000c99ffe6c6c86 /lib/classes/MyRealmModel.php | |
| parent | 550ad14d630d9d7de01c5b99371f518f1795212a (diff) | |
fixes #78
Diffstat (limited to 'lib/classes/MyRealmModel.php')
| -rw-r--r-- | lib/classes/MyRealmModel.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/MyRealmModel.php b/lib/classes/MyRealmModel.php index 7b981c3..c832aec 100644 --- a/lib/classes/MyRealmModel.php +++ b/lib/classes/MyRealmModel.php @@ -584,12 +584,12 @@ class MyRealmModel * Get all user assigned institutes based on simple or map * @return array */ - public static function getMyInstitutes() + public static function getMyInstitutes(): array { $memberShips = InstituteMember::findByUser($GLOBALS['user']->id); if (empty($memberShips)) { - return null; + return []; } $institutes = []; $insts = new SimpleCollection($memberShips); |
