diff --git a/lam/lib/listgroups.php b/lam/lib/listgroups.php index 9b4dc07e..9197678c 100644 --- a/lam/lib/listgroups.php +++ b/lam/lib/listgroups.php @@ -51,8 +51,11 @@ for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which i echo ("" . $info[$i]["cn"][0] . ""); echo ("" . $info[$i]["gidnumber"][0] . ""); // create list of group members - array_shift($info[$i]["memberuid"]); // delete count entry - $grouplist = implode("; ", $info[$i]["memberuid"]); + if (sizeof($info[$i]["memberuid"]) > 0) { + array_shift($info[$i]["memberuid"]); // delete count entry + $grouplist = implode("; ", $info[$i]["memberuid"]); + } + else $grouplist = ""; echo ("" . $grouplist . ""); echo ("" . $info[$i]["description"][0] . ""); echo("");