diff --git a/lib/Basic/Vacation.php b/lib/Basic/Vacation.php index ade60cb..eb3bc74 100644 --- a/lib/Basic/Vacation.php +++ b/lib/Basic/Vacation.php @@ -68,7 +68,7 @@ protected function _init() $vacation->disable = true; $notify = _("Rule Disabled"); } else { - $notification->push(_("Changes saved."), 'horde.success'); + $notify = _("Changes saved."); } $ingo_storage->updateRule($vacation); diff --git a/lib/Form/Vacation.php b/lib/Form/Vacation.php index adeab40..96d6a5f 100644 --- a/lib/Form/Vacation.php +++ b/lib/Form/Vacation.php @@ -102,8 +102,8 @@ public function validate($vars = null, $canAutoFill = false) } if ($this->hasFeature('period')) { - $start = $this->_start->getInfo($vars, $start); - $end = $this->_end->getInfo($vars, $end); + $start = $this->_start->getInfo($vars, []); + $end = $this->_end->getInfo($vars, []); if ($start && $end && $end < $start) { $valid = false; $this->_errors['end'] = _("Vacation end date is prior to start.");