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]); }