Skip to content

Commit

Permalink
Merge pull request #254 from Miro-Collas/master
Browse files Browse the repository at this point in the history
Minor bugfix
  • Loading branch information
Klap-in committed Sep 11, 2023
2 parents d9b06d4 + ddc5801 commit d0c9ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.php
Expand Up @@ -560,7 +560,7 @@ protected function replacePlaceholders($tag) {
$name = '';
}
// FIXME or delete, is unreliable because just first entry of group array is used, regardless the order of groups..
if(is_array($USERINFO) && isset($USERINFO['grps'])) {
if(is_array($USERINFO) && is_array($USERINFO['grps']) && isset($USERINFO['grps'][0])) {
$group = cleanID($USERINFO['grps'][0]);
}
else {
Expand Down

0 comments on commit d0c9ec3

Please sign in to comment.