diff options
Diffstat (limited to 'includes/components/timeline.inc')
-rw-r--r-- | includes/components/timeline.inc | 7 |
1 files changed, 5 insertions, 2 deletions
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) > <?php foreach ($systems as $system): ?> <tr style="height: <?= count($systems) === 1 ? 50 : 30 ?>px;"> <?php if ($showIcons): ?><td colspan="20"> - <a href="/<?= $system === "gdapd" ? "raindrops" : ($system === "ynmuc" ? "cloudburst" : $app["other"]["slug"]) ?>" style="width: 100%; height: 30px; display: flex; align-items: center; justify-content: center;"> + <a href="/<?= $system === "gdapd" ? "raindrops" : ($system === "ynmuc" ? "cloudburst" : ($system === "hrbom" ? "Moonglow" : $app["other"]["slug"])) ?>" style="width: 100%; height: 30px; display: flex; align-items: center; justify-content: center;"> <img alt="" style="border-radius: 5px; height: 24px; text-align: center;" src="<?= getAsset($system) ?>"> </a> </td><?php endif; ?> @@ -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) { |