mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
More fixes, relies on class change - this could change also
This commit is contained in:
parent
83ba768cb6
commit
08f8976bfe
@ -46,11 +46,14 @@
|
|||||||
$accounts = $account->get_list();
|
$accounts = $account->get_list();
|
||||||
|
|
||||||
for($i=0;$i<count($accounts);$i++) {
|
for($i=0;$i<count($accounts);$i++) {
|
||||||
echo $account->get_type($accounts[$i]["account_id"]);
|
//echo $account->get_type($accounts[$i]["account_id"]);
|
||||||
if ($account->get_type($accounts[$i]["account_id"]) == "g") {
|
if ($account->get_type($accounts[$i]["account_id"]) == "g") {
|
||||||
$groups_select .= '<option value="' . $accounts[$i]["account_id"] . '"';
|
$groups_select .= '<option value="' . $accounts[$i]["account_id"] . '"';
|
||||||
for ($j=0; $j<count($user_groups); $j++) {
|
$members = $account->members($accounts[$i]["account_id"]);
|
||||||
if ($user_groups[$j][0] == $accounts[$i]["account_id"]) {
|
if (!$members) { $members = array(); }
|
||||||
|
while (list($name,$value) = each($members)) {
|
||||||
|
//echo $value;
|
||||||
|
if ($value == $accounts[$i]["account_id"]) {
|
||||||
$groups_select .= " selected";
|
$groups_select .= " selected";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user