Skip to content

Commit 7216a1f

Browse files
authored
fix isInGroup() Funktion (#460)
1 parent a47a621 commit 7216a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ycom_user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function isInGroup(int $group_id): bool
2222
}
2323
if ('' != $ycom_groups) {
2424
$ycom_groups_array = explode(',', $ycom_groups);
25-
if (in_array($group_id, $ycom_groups_array, true)) {
25+
if (in_array((string) $group_id, $ycom_groups_array, true)) {
2626
return true;
2727
}
2828
}

0 commit comments

Comments
 (0)