Code

Fixed remove errors
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jun 2006 04:28:40 +0000 (04:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Jun 2006 04:28:40 +0000 (04:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3686 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goMailServer.inc

index 02b7bd67c6e9ff3a1469813b7d6d5b337f696cc9..8afd4dda024a3274e20c69e5f30dc16a50b1d751 100644 (file)
@@ -246,7 +246,7 @@ class goMailServer extends plugin{
       $this->postfixMyNetworks[base64_encode($str)] = $str;
     }
 
-    if((isset($_POST['DelpostfixMyNetworks'])) && (count($_POST['Select_postfixMyNetworks']))){
+    if((isset($_POST['DelpostfixMyNetworks'])) && isset($_POST['Select_postfixMyNetworks']) &&(count($_POST['Select_postfixMyNetworks']))){
       foreach($_POST['Select_postfixMyNetworks'] as $str ){
         unset($this->postfixMyNetworks[$str]);
       }
@@ -259,7 +259,7 @@ class goMailServer extends plugin{
       $this->postfixMyDestinations[base64_encode($str)] = $str;
     }
 
-    if((isset($_POST['DelpostfixMyDestinations'])) && (count($_POST['Select_postfixMyDestinations']))){
+    if((isset($_POST['DelpostfixMyDestinations'])) && isset($_POST['Select_postfixMyDestinations']) &&(count($_POST['Select_postfixMyDestinations']))){
       foreach($_POST['Select_postfixMyDestinations'] as $str ){
         unset($this->postfixMyDestinations[$str]);
       }