Fixed PHP warning about variable passed to asort() not being an array when submiting your preferences

This commit is contained in:
jengo 2001-04-02 22:12:09 +00:00
parent 18218cf1a4
commit 2a1f9be4ec

View File

@ -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')