mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
better support of ->memberships() results for getGroups()
This commit is contained in:
parent
89c174dcbc
commit
68efb23f14
@ -209,18 +209,18 @@
|
||||
|
||||
$out = '<select name="' . $name . '" multiple>';
|
||||
while (list($null,$group) = each($groups)) {
|
||||
$out .= '<option value="' . $group[0] . '"';
|
||||
$out .= '<option value="' . $group['account_id'] . '"';
|
||||
if (strtolower(gettype($selected)) == strtolower("array")) {
|
||||
for($i=0;$i<count($selected);$i++) {
|
||||
if ($group[0] == $selected[$i]) {
|
||||
if ($group['account_id'] == $selected[$i]) {
|
||||
$out .= " SELECTED";
|
||||
break;
|
||||
}
|
||||
}
|
||||
} elseif (ereg("," . $group[0] . ",", $selected)) {
|
||||
} elseif (ereg("," . $group['account_id'] . ",", $selected)) {
|
||||
$out .= " SELECTED";
|
||||
}
|
||||
$out .= ">" . $group[1] . "</option>\n";
|
||||
$out .= ">" . $group['account_name'] . "</option>\n";
|
||||
}
|
||||
$out .= "</select>\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user