fixed errors if group has no members
This commit is contained in:
parent
c12e0b0713
commit
ccc227e156
|
@ -51,8 +51,11 @@ for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which i
|
||||||
echo ("<td class=\"userlist\">" . $info[$i]["cn"][0] . "</td>");
|
echo ("<td class=\"userlist\">" . $info[$i]["cn"][0] . "</td>");
|
||||||
echo ("<td class=\"userlist\">" . $info[$i]["gidnumber"][0] . "</td>");
|
echo ("<td class=\"userlist\">" . $info[$i]["gidnumber"][0] . "</td>");
|
||||||
// create list of group members
|
// create list of group members
|
||||||
|
if (sizeof($info[$i]["memberuid"]) > 0) {
|
||||||
array_shift($info[$i]["memberuid"]); // delete count entry
|
array_shift($info[$i]["memberuid"]); // delete count entry
|
||||||
$grouplist = implode("; ", $info[$i]["memberuid"]);
|
$grouplist = implode("; ", $info[$i]["memberuid"]);
|
||||||
|
}
|
||||||
|
else $grouplist = "";
|
||||||
echo ("<td class=\"userlist\">" . $grouplist . "</td>");
|
echo ("<td class=\"userlist\">" . $grouplist . "</td>");
|
||||||
echo ("<td class=\"userlist\">" . $info[$i]["description"][0] . "</td>");
|
echo ("<td class=\"userlist\">" . $info[$i]["description"][0] . "</td>");
|
||||||
echo("</tr>");
|
echo("</tr>");
|
||||||
|
|
Loading…
Reference in New Issue