Code

Updated dynamic loading of folders
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Nov 2010 14:13:09 +0000 (14:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Nov 2010 14:13:09 +0000 (14:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20272 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 0db7a70f0d2c6522e6a0213f13dfb670155bb261..fc3a8b7fcc5eedd4e70871c13ca8d375f8b948fb 100644 (file)
@@ -331,7 +331,10 @@ class Groupware extends plugin
             // Load mail folder entries on demand, this will increase the account 
             //  instantiation a lot.
             if($this->mailFolder === NULL){
-                $this->mailFolder = $this->GroupwareDao->getListOfMailFolders();
+                $this->mailFolder = array();
+                if($this->initially_was_account){
+                    $this->mailFolder = $this->GroupwareDao->getListOfMailFolders();
+                }
             }
 
             $folders = $this->mailFolder;
@@ -799,7 +802,7 @@ class Groupware extends plugin
     {
         // Get rpc handle to create or update the account
         if(!$this->initially_was_account){
-            $res = $this->rpcExec('gwAcctdAdd', $this->uid, $this->mailAddress);
+            $res = $this->rpcExec('gwAcctAdd', $this->uid, $this->mailAddress);
             if($res === NULL){
                 $message = _("Groupware account creation failed!");
                 msg_dialog::display(_("Error"),$message."<br>".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG);