Code

Don't reload departments everytime
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 May 2007 12:37:36 +0000 (12:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 May 2007 12:37:36 +0000 (12:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6250 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_userinfo.inc

index f6665f9b6311080b1fd3800ffa7d6e6abe9c3caa..783b66822fe500558313f1ca8a27c726243f02a5 100644 (file)
@@ -287,7 +287,7 @@ class userinfo
     }
 
     /* Load departments here, if we are using php4 */
-    if(is_php4()){
+    if(is_php4() && !count($this->config->departments)){
       $this->config->get_departments();
     }