From 48803ee11e46faea7cd4f1bbb364c023ed31ee4b Mon Sep 17 00:00:00 2001 From: hzerres Date: Thu, 18 Nov 2010 15:22:28 +0000 Subject: [PATCH] (libgroupware) vacation checkbox fixed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20275 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/groupware/class_GroupwareDao.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc index 3147f6e2c..0e5e57127 100644 --- a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc +++ b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc @@ -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; } -- 2.30.2