From ee9cf93b63131d35a203b882d4cd781558dec5d3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 30 Mar 2005 14:46:37 +0000 Subject: [PATCH] removed hack necessary because of the wrong call of the contructor of the application class --- admin/inc/class.boaccounts.inc.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index 18d26f36d5..dbf4981d09 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -814,16 +814,14 @@ ),False,True); // called for every app now, not only enabled ones) } - $apps = CreateObject('phpgwapi.applications',array((int)$_userData['account_id'],'u')); - - $apps->account_id = $_userData['account_id']; + $apps = CreateObject('phpgwapi.applications',(int)$_userData['account_id']); if ($_userData['account_permissions']) { - while($app = each($_userData['account_permissions'])) + foreach($_userData['account_permissions'] as $app => $enabled) { - if($app[1]) + if($enabled) { - $apps->add($app[0]); + $apps->add($app); } } }