Code

Added some checks to logging class
[gosa.git] / include / class_userinfo.inc
index b409af88be28968ba291ba24e40523ca7aa5655b..783b66822fe500558313f1ca8a27c726243f02a5 100644 (file)
@@ -286,6 +286,11 @@ class userinfo
       }
     }
 
+    /* Load departments here, if we are using php4 */
+    if(is_php4() && !count($this->config->departments)){
+      $this->config->get_departments();
+    }
+
     /* For all gosaDepartments */
     foreach ($this->config->departments as $dn){
       $acl= array("r" => "", "w" => "", "c" => "", "d" => "", "m" => "", "a" => "");