From: hickert Date: Wed, 28 Mar 2007 08:26:41 +0000 (+0000) Subject: The attributes gosaVacationStart / gosaVacationStop were not initialized X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d5857bdbd47a12029cebfee1cc0821a3d501d17f;p=gosa.git The attributes gosaVacationStart / gosaVacationStop were not initialized correctly when creating a new user. The values were 0 untill the dates were changed with the html interface. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5910 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 9325d21e2..95960749a 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -512,6 +512,7 @@ class mailAccount extends plugin /* Display mail account tab */ if($this->gosaVacationStart ==0){ $date= getdate(time()); + $this->gosaVacationStart = time(); }else{ $date= getdate($this->gosaVacationStart); } @@ -536,6 +537,7 @@ class mailAccount extends plugin if($this->gosaVacationStop ==0){ $date= getdate(time()); $date["mday"]++; + $this->gosaVacationStop = time() + (60*60*24); }else{ $date= getdate($this->gosaVacationStop); }