Code

(libgroupware) vacation checkbox fixed.
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Nov 2010 15:22:28 +0000 (15:22 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 18 Nov 2010 15:22:28 +0000 (15:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20275 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc

index 3147f6e2ca25ff8dfb95d9dc4c16204348712142..0e5e57127eeb34cd06d31d352b06b076edfd8345 100644 (file)
@@ -196,9 +196,16 @@ class GroupwareDao{
 
                $resultArr["mailLimitSendEnabled"] = TRUE;
                $resultArr["mailLimitSendValue"] = $comp["mailLimits"]["send"];
-
-               $resultArr["vacationMessage"] = $comp["vacation"]["message"];
-
+               
+               if(empty($comp["vacation"]["message"])){
+                       $resultArr["vacationEnabled"] = FAlSE;
+                       $resultArr["vacationMessage"] = "";
+               }
+               else{
+                       $resultArr["vacationEnabled"] = TRUE;
+                       $resultArr["vacationMessage"] = $comp["vacation"]["message"];
+               }
+               
                return $resultArr;
        }