Fixes notice on users with no groups

This commit is contained in:
nikolark committed 2015-07-09 23:51:29 +02:00
1 parent ac7d136948
commit 05e7c423aa
1 file changed
+3
+3
View File
@@ -159,6 +159,9 @@ $results = array();
foreach($res as $result) {
foreach($result as $key => $value) {
if($key == "groups") {
if($value === "") {
continue; // no groups
}
$u_gs = array();
$u_groups = explode(",",$value);
foreach($u_groups as $g) {