From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- includes/components/timeline.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'includes/components/timeline.inc') diff --git a/includes/components/timeline.inc b/includes/components/timeline.inc index 3766073..bbda780 100644 --- a/includes/components/timeline.inc +++ b/includes/components/timeline.inc @@ -29,7 +29,7 @@ function displayTimeline($systems) { global $app; $showIcons = count($systems) > - " style="width: 100%; height: 30px; display: flex; align-items: center; justify-content: center;"> + " style="width: 100%; height: 30px; display: flex; align-items: center; justify-content: center;"> @@ -49,7 +49,10 @@ function displayTimeline($systems) { global $app; $showIcons = count($systems) > foreach ($switches as $index => $switch) { if (strtotime($switch["timestamp"]) >= $time) { - $correct = $switches[$index - 1]; + $correct = $switches[$index - 1] ?? [ + "members" => [], + "timestamp" => date('c', 0) + ]; $v = floor((strtotime($switch["timestamp"]) - $time) / 60); if (count($correct["members"]) > 0) { -- cgit