From 45273898a38ca5e2bcaa619288cef7d5eab7943f Mon Sep 17 00:00:00 2001 From: Martin Blumenthal Date: Mon, 29 Jun 2009 16:39:33 +0200 Subject: [PATCH] Fixes a bug when automatically loading semester dates. --- skoli/lib/School.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.11.0