From 87016e37f4aeb53de8ea37a3a5e91e86da9e23d2 Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Mon, 8 May 2023 13:05:46 +0000
Subject: [PATCH] prevent php8-warnings, closes #2617

Closes #2617

Merge request studip/studip!1766
---
 lib/raumzeit/MetaDate.class.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/raumzeit/MetaDate.class.php b/lib/raumzeit/MetaDate.class.php
index 7e6fbbd2d0b..69057163c8c 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"])) {
-- 
GitLab