From: Martin Blumenthal Date: Mon, 29 Jun 2009 14:39:33 +0000 (+0200) Subject: Fixes a bug when automatically loading semester dates. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=45273898a38ca5e2bcaa619288cef7d5eab7943f;p=horde.git Fixes a bug when automatically loading semester dates. --- diff --git a/skoli/lib/School.php b/skoli/lib/School.php index d72d83e65..513b1a56d 100644 --- a/skoli/lib/School.php +++ b/skoli/lib/School.php @@ -63,7 +63,8 @@ class Skoli_School { break; } } - if (isset($activesemester[$property]) && !is_array($form->_vars->get($property))) { + $datevars = $form->_vars->get($property); + if (isset($activesemester[$property]) && empty($datevars['day'])) { require_once 'Horde/Date.php'; if ($property == 'start') { $startdate = 0;