Code

Updated groupMail
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Mar 2009 10:34:13 +0000 (10:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Mar 2009 10:34:13 +0000 (10:34 +0000)
-Fixed continue problem

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13522 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/admin/groups/mail/class_groupMail.inc

index ee636c8e3dd75bcdcd77a89b4ad343d04dc2b568..027fd83498fea4637716dffabd8ba0cc3456614d 100644 (file)
@@ -1185,7 +1185,7 @@ class mailgroup extends plugin
    */
   function addForwarder($address)
   {
-    if(empty($address)) continue;
+    if(empty($address)) return;
     $this->gosaMailForwardingAddress[]= $address;
     $this->gosaMailForwardingAddress= array_unique($this->gosaMailForwardingAddress);
 
@@ -1205,7 +1205,7 @@ class mailgroup extends plugin
    */
   function delForwarder($addresses)
   {
-    if(empty($address)) continue;
+    if(empty($addresses)) return;
     $this->gosaMailForwardingAddress= array_remove_entries ($addresses,
         $this->gosaMailForwardingAddress);