diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-10-26 19:32:49 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-10-26 19:32:49 +0000 |
| commit | 6a16eee07bae612bae5cc14639b1800ad6978cf8 (patch) | |
| tree | f7ae4e4db829d034a4fe16bce76e0a1c766ca77e /lib/calendar | |
| parent | e1af76a74550bcdd55eb48b9a32f39f468a466cd (diff) | |
prevent more php8 warnings, fixes #1717
Closes #1717
Merge request studip/studip!1119
Diffstat (limited to 'lib/calendar')
| -rw-r--r-- | lib/calendar/CalendarColumn.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/calendar/CalendarColumn.class.php b/lib/calendar/CalendarColumn.class.php index 9292d0c..3c071f1 100644 --- a/lib/calendar/CalendarColumn.class.php +++ b/lib/calendar/CalendarColumn.class.php @@ -333,7 +333,10 @@ class CalendarColumn for ($i = floor($data['start'] / 100); $i <= floor($data['end'] / 100); $i++) { for ($j = 0; $j < 60; $j++) { if (($i * 100) + $j >= $data['start'] && ($i * 100) + $j < $data['end']) { - $group_matrix[($i * 100) + $j]++; + if (!isset($group_matrix[$i * 100 + $j])) { + $group_matrix[$i * 100 + $j] = 0; + } + $group_matrix[$i * 100 + $j]++; } } } |
