Skip to content
Snippets Groups Projects
Commit 1b2c9697 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

prevent warnings, fixes #4521

Closes #4521

Merge request studip/studip!3317
parent f580ad7d
No related branches found
No related tags found
No related merge requests found
......@@ -315,7 +315,7 @@ class CycleData
unset($termin);
$termin = new SingleDate();
$termin->fillValuesFromArray($val);
$termin->setExTermin($val['ex_termin']);
$termin->setExTermin(!empty($val['ex_termin']));
$this->termine[$val['termin_id']] = $termin;
}
return TRUE;
......
......@@ -370,7 +370,7 @@ class SingleDate
if (!$name) {
$holy_type = holiday($this->date);
$name = $holy_type['name'];
$name = $holy_type ? $holy_type['name'] : null;
}
if ($name) {
......
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