Code

Only receive account if while account is active
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 09:08:44 +0000 (09:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Sep 2010 09:08:44 +0000 (09:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19844 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_Groupware.inc

index 25157ba5a4ff4977058f3c39bc205b40d28a97d3..3fc734804ef20c9a33af51da520ab8c4d8177934 100644 (file)
@@ -181,16 +181,19 @@ class Groupware extends plugin
             }
             $this->enabledFeatures[$name] = $active;
         }
+
         // Get rpc handle to fetch account info and feature availability.
         $status = $this->rpcExec('gwAcctExists', $this->uid);
         if($status !== NULL){
-            $response = $this->groupwareDao->getComprehensiverUser($this->uid);
-
-            $this->mapComprehensiveUserData($response);
             $this->initially_was_account = $this->is_account = $status;
 
+            if($this->is_account){
+                $response = $this->groupwareDao->getComprehensiverUser($this->uid);
+                $this->mapComprehensiveUserData($response);
+            }
             $this->accountInitialized = TRUE;
         }
+
         // Set vacation start/stop if not set alreasy
         $this->vacationStart = time();
         $this->vacationStop = time() + (14 * 60*60*24);