Code

The attributes gosaVacationStart / gosaVacationStop were not initialized
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Mar 2007 08:26:41 +0000 (08:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Mar 2007 08:26:41 +0000 (08:26 +0000)
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

plugins/personal/mail/class_mailAccount.inc

index 9325d21e2e9c7870818d139ef84637d401475265..95960749a21ff53d8b19c9be810216b90ba451ba 100644 (file)
@@ -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);
     }