diff --git a/lib/raumzeit/MetaDate.class.php b/lib/raumzeit/MetaDate.class.php index 7e6fbbd2d0b70af3858d20db331750ab2547f232..69057163c8cab5822e9f8dda42a6dbaff55c126e 100644 --- a/lib/raumzeit/MetaDate.class.php +++ b/lib/raumzeit/MetaDate.class.php @@ -359,6 +359,7 @@ class MetaDate function store() { $old_cycle_dates = []; + $changed = 0; foreach (SeminarCycleDate::findBySeminar($this->seminar_id) as $c) { $old_cycle_dates[$c->getId()] = $c; } @@ -465,7 +466,7 @@ class MetaDate /** * returns true if a given cycle has at least one date at all or in the given time range * - * @param string cycle id + * @param string $metadate_id * @param int $filterStart * @param int $filterEnd * @return bool @@ -518,7 +519,8 @@ class MetaDate $ret = []; $all_semester = Semester::findAllVisible(false); - + $sem_begin = null; + $sem_end = null; // get the starting-point for creating singleDates for the choosen cycleData foreach ($all_semester as $val) { if (($this->seminarStartTime >= $val["beginn"]) && ($this->seminarStartTime <= $val["ende"])) {