summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}