Code

Avoid PHP warnings in mailAccount
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Dec 2007 13:00:29 +0000 (13:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Dec 2007 13:00:29 +0000 (13:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8148 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/mail/class_mailAccount.inc

index d1415d32b23cc010b73a9d9c625e0fa97b66d1b8..8484608df6e46c8a374d1ec5c4c51003113a0aa7 100644 (file)
@@ -861,8 +861,12 @@ class mailAccount extends plugin
       $this->gosaMailDeliveryMode= $tmp;
 
       if(chkacl($this->acl,"gosaVacationMessage") == "" && preg_match("/V/",$this->gosaMailDeliveryMode)){
-        $this->gosaVacationStart = $_POST['gosaVacationStart']; 
-        $this->gosaVacationStop = $_POST['gosaVacationStop']; 
+        if(isset($_POST['gosaVacationStart'])){
+          $this->gosaVacationStart = $_POST['gosaVacationStart'];
+        }
+        if(isset($_POST['gosaVacationStop'])){
+          $this->gosaVacationStop = $_POST['gosaVacationStop'];
+        }
       }
     }
   }