mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
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;
|
||||
}
|
||||
}
|
||||
|
||||
$memberships = $phpgw->accounts->memberships($owner);
|
||||
for ($k=0;$k<count($memberships);$k++)
|
||||
{
|
||||
$apps_list = $acl->get_app_list_for_id('run',1,$memberships[$k]['account_id']);
|
||||
asort($apps_list);
|
||||
|
||||
if (is_array($apps_list))
|
||||
{
|
||||
asort($apps_list);
|
||||
|
||||
while($apps = each($apps_list))
|
||||
{
|
||||
if($apps[1] == 'admin')
|
||||
|
Loading…
Reference in New Issue
Block a user