From 1a468ea9b88a1d43ef099d945ca5df89f488d669 Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Wed, 11 Sep 2024 14:24:43 +1000 Subject: [PATCH] Fixed bug with floor #363 --- classes/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/helper.php b/classes/helper.php index 62ba245..0626f6c 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -162,7 +162,7 @@ public static function cli_return_status_display(int $status): string { * @return string */ public static function http_status_display(int $status): string { - $spanclass = 'badge ' . self::STATUS_BADGES[$status / 100]; + $spanclass = 'badge ' . self::STATUS_BADGES[floor($status / 100)]; return \html_writer::tag('span', $status, ['class' => $spanclass]); }