Skip to content

Commit 1a468ea

Browse files
Fixed bug with floor #363
1 parent cf92839 commit 1a468ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static function cli_return_status_display(int $status): string {
162162
* @return string
163163
*/
164164
public static function http_status_display(int $status): string {
165-
$spanclass = 'badge ' . self::STATUS_BADGES[$status / 100];
165+
$spanclass = 'badge ' . self::STATUS_BADGES[floor($status / 100)];
166166
return \html_writer::tag('span', $status, ['class' => $spanclass]);
167167
}
168168

0 commit comments

Comments
 (0)