From 2a1f9be4ecf80fea053ac95645dad7c169b2a1d8 Mon Sep 17 00:00:00 2001 From: jengo Date: Mon, 2 Apr 2001 22:12:09 +0000 Subject: [PATCH] Fixed PHP warning about variable passed to asort() not being an array when submiting your preferences --- preferences/settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/preferences/settings.php b/preferences/settings.php index e7c5090213..c15cedff6b 100755 --- a/preferences/settings.php +++ b/preferences/settings.php @@ -33,14 +33,16 @@ return True; } } + $memberships = $phpgw->accounts->memberships($owner); for ($k=0;$kget_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')