diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-09-04 13:43:36 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-09-04 13:46:49 (GMT) |
commit | 11c9a15e0fd6bc00259b7d2fdc9868d450a34cf7 (patch) | |
tree | cc91b12b9bf3ff9ca19a34f065d50dd48d40bf6f | |
parent | 0a7b32758a8cb2014e08b053855b1dac2eb8841f (diff) | |
download | kolab-wap-11c9a15e0fd6bc00259b7d2fdc9868d450a34cf7.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.php | 4 |
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; } |