summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-04 14:43:36 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-04 14:46:49 +0100
commit11c9a15e0fd6bc00259b7d2fdc9868d450a34cf7 (patch)
treecc91b12b9bf3ff9ca19a34f065d50dd48d40bf6f
parent0a7b32758a8cb2014e08b053855b1dac2eb8841f (diff)
downloadwebadmin-kolab-webadmin-3.0.1.tar.gz
Increase verbosity on user_types being returned,kolab-webadmin-3.0.1
Avoid using cached user_types if there is none stored in the $_SESSION['user_types']
-rw-r--r--lib/kolab_client_task.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index da97fe4..8807589 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -525,7 +525,7 @@ class kolab_client_task
*/
protected function user_types($used_for = NULL)
{
- if (isset($_SESSION['user_types']) && !$this->config_get('devel_mode')) {
+ if (isset($_SESSION['user_types']) && !empty($_SESSION['user_types']) && !$this->config_get('devel_mode')) {
return $_SESSION['user_types'];
}
@@ -548,6 +548,8 @@ class kolab_client_task
$_SESSION['user_types'] = $list;
}
+ Log::trace("kolab_client_task::user_types() returns: " . var_export($list, TRUE));
+
return $list;
}