From fd8a910b0899121f133f25a1abe000e7b5c8107c Mon Sep 17 00:00:00 2001 From: seek3r Date: Sat, 27 Jan 2001 03:29:33 +0000 Subject: [PATCH] fixed logic problem --- phpgwapi/inc/class.applications.inc.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/class.applications.inc.php b/phpgwapi/inc/class.applications.inc.php index a3904885bc..7ab3f7703b 100755 --- a/phpgwapi/inc/class.applications.inc.php +++ b/phpgwapi/inc/class.applications.inc.php @@ -37,18 +37,14 @@ function users_enabled_apps() { global $phpgw, $phpgw_info; - $acl_apps = $phpgw->acl->get_app_list('run', 1); - if ($acl_apps != False) { - reset ($acl_apps); - while (list($app) = each($phpgw_info["apps"])) { - if ($phpgw->acl->check("run",1,$app)) { - $phpgw_info["user"]["apps"][$app] = array("title" => $phpgw_info["apps"][$app]["title"], "name" => $app, "enabled" => True, "status" => $phpgw_info["apps"][$app]["status"]); - } - } - } if (gettype($phpgw_info["apps"]) != "array") { $this->read_installed_apps(); } + while (list($app) = each($phpgw_info["apps"])) { + if ($phpgw->acl->check("run",1,$app)) { + $phpgw_info["user"]["apps"][$app] = array("title" => $phpgw_info["apps"][$app]["title"], "name" => $app, "enabled" => True, "status" => $phpgw_info["apps"][$app]["status"]); + } + } } function read_installed_apps(){