mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
fixed logic problem
This commit is contained in:
parent
716c0c7f24
commit
fd8a910b08
@ -37,18 +37,14 @@
|
|||||||
function users_enabled_apps()
|
function users_enabled_apps()
|
||||||
{
|
{
|
||||||
global $phpgw, $phpgw_info;
|
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") {
|
if (gettype($phpgw_info["apps"]) != "array") {
|
||||||
$this->read_installed_apps();
|
$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(){
|
function read_installed_apps(){
|
||||||
|
Loading…
Reference in New Issue
Block a user