Fixes a bug when automatically loading semester dates.
authorMartin Blumenthal <tinu@humbapa.ch>
Mon, 29 Jun 2009 14:39:33 +0000 (16:39 +0200)
committerMartin Blumenthal <tinu@humbapa.ch>
Mon, 29 Jun 2009 14:39:33 +0000 (16:39 +0200)
skoli/lib/School.php

index d72d83e..513b1a5 100644 (file)
@@ -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;