From 038113ed5952e358e71b6256257cf87772a4f73d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 18 Nov 2010 14:13:09 +0000 Subject: [PATCH] Updated dynamic loading of folders git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20272 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groupware/personal/groupware/class_Groupware.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index 0db7a70f0..fc3a8b7fc 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -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."
".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG); -- 2.30.2