aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2023-05-08 13:05:46 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-05-08 13:05:46 +0000
commit87016e37f4aeb53de8ea37a3a5e91e86da9e23d2 (patch)
tree0687af4e84e699d5abbcb32aace484c562f9e517 /lib
parent85db9be770e3ff84a801d406c3aa30d9aa69954a (diff)
prevent php8-warnings, closes #2617
Closes #2617 Merge request studip/studip!1766
Diffstat (limited to 'lib')
-rw-r--r--lib/raumzeit/MetaDate.class.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/raumzeit/MetaDate.class.php b/lib/raumzeit/MetaDate.class.php
index 7e6fbbd..6905716 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"])) {