Code

Added some checks
[gosa.git] / plugins / personal / connectivity / class_proxyAccount.inc
index 5e97daa8dd5be8ae48baa406007f46716eade90e..acc6ebf9dec2e2a3803490f04be06d54eda42fbc 100644 (file)
@@ -173,10 +173,14 @@ class proxyAccount extends plugin
       /* Save quota values */
       if (chkacl ($this->acl, "gosaProxyQuota") == ""){
         $old= $this->gosaProxyQuota;
-        $this->gosaProxyQuota= $_POST["quota_size"].$_POST["quota_unit"];
+        if(isset($_POST["quota_size"]) && isset($_POST["quota_unit"])){
+          $this->gosaProxyQuota= $_POST["quota_size"].$_POST["quota_unit"];
+        }
         $this->is_modified= ($old != $this->gosaProxyQuota)?TRUE:$this->is_modified;
         $old= $this->gosaProxyQuotaPeriod;
-        $this->gosaProxyQuotaPeriod = $_POST["gosaProxyQuotaPeriod"];
+        if(isset($_POST["gosaProxyQuotaPeriod"])){
+          $this->gosaProxyQuotaPeriod = $_POST["gosaProxyQuotaPeriod"];
+        }
         $this->is_modified= ($old != $this->gosaProxyQuotaPeriod)?TRUE:$this->is_modified;
       }
     }