forked from extern/egroupware
Fixed PHP warning about variable passed to asort() not being an array when submiting your preferences
This commit is contained in:
parent
18218cf1a4
commit
2a1f9be4ec
@ -33,14 +33,16 @@
|
|||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$memberships = $phpgw->accounts->memberships($owner);
|
$memberships = $phpgw->accounts->memberships($owner);
|
||||||
for ($k=0;$k<count($memberships);$k++)
|
for ($k=0;$k<count($memberships);$k++)
|
||||||
{
|
{
|
||||||
$apps_list = $acl->get_app_list_for_id('run',1,$memberships[$k]['account_id']);
|
$apps_list = $acl->get_app_list_for_id('run',1,$memberships[$k]['account_id']);
|
||||||
asort($apps_list);
|
|
||||||
|
|
||||||
if (is_array($apps_list))
|
if (is_array($apps_list))
|
||||||
{
|
{
|
||||||
|
asort($apps_list);
|
||||||
|
|
||||||
while($apps = each($apps_list))
|
while($apps = each($apps_list))
|
||||||
{
|
{
|
||||||
if($apps[1] == 'admin')
|
if($apps[1] == 'admin')
|
||||||
|
Loading…
Reference in New Issue
Block a user