Code

Backports from trunk
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2011 09:08:47 +0000 (09:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2011 09:08:47 +0000 (09:08 +0000)
-Fixed in_array call, use in_array_strict now

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

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

index d28b9526fa11b5884f98497ecd58bb4e995def99..acaae12ede8a79d25ef375b0a1be4cd347560899 100644 (file)
@@ -343,7 +343,7 @@ class mailgroup extends plugin
                 $list = $this->mailAddressSelect->save();
                 foreach ($list as $entry){
                     $val = $entry['mail'][0];
-                    if (!in_array ($val, $this->gosaMailAlternateAddress) && $val != $this->mail){
+                    if (!in_array_strict($val, $this->gosaMailAlternateAddress) && $val != $this->mail){
                         $this->addForwarder($val);
                         $this->is_modified= TRUE;
                     }