From 774857aad3e8e0ad558ecd22a92cafdad5d401b1 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 14 Mar 2001 18:51:47 +0000 Subject: [PATCH] Move creation of apps object up above app display vars --- admin/editaccount.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index 07cf9a548b..31a691c93b 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -95,7 +95,7 @@ $allAccounts; $userGroups; - + $groups_select = ''; $t->set_var('groups_select',$groups_select); - - // create list of available app + + // create list of available apps $i = 0; - + + $apps = CreateObject('phpgwapi.applications',intval($_account_id)); + $db_perms = $apps->read_account_specific(); + + @reset($phpgw_info['apps']); $availableApps = $phpgw_info['apps']; @asort($availableApps); @reset($availableApps); @@ -132,11 +136,8 @@ } // create apps output - $apps = CreateObject('phpgwapi.applications',intval($_account_id)); - $db_perms = $apps->read_account_specific(); - @reset($db_perms); - + for ($i=0;$i<=count($perm_display);$i++) { $checked = ''; @@ -394,4 +395,4 @@ $phpgw->common->hook_single('show_user_data', $app[0]); } -?> \ No newline at end of file +?>