Skip to content
Snippets Groups Projects
Commit 87016e37 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php8-warnings, closes #2617

Closes #2617

Merge request studip/studip!1766
parent 85db9be7
No related branches found
No related tags found
No related merge requests found
......@@ -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"])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment