Code

Prepare object with fixAttributesOnRemove before removing.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Oct 2006 05:00:16 +0000 (05:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Oct 2006 05:00:16 +0000 (05:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4904 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupMail.inc

index 20a421455a14cca1e72c837000ecf2b17f86b73f..801ebd7c7c449ae0969f65c10b862c7f73b8cac8 100644 (file)
@@ -616,13 +616,13 @@ class mailgroup extends plugin
     if ($this->initially_was_account){
  
       $method= new $this->method($this->config);
+      $method->fixAttributesOnRemove($this);
       if ($method->connect($this->gosaMailServer) && $this->remove_folder_from_imap){
 
         /* Remove account from IMAP server */
         $method->deleteMailbox($this->uid);
         $method->disconnect();
       }
-      $method->fixAttributesOnRemove($this);
     }
     /* Keep uid */
     unset ($this->attrs['uid']);