Skip to content

Commit

Permalink
Fixed bug with floor #363
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Sep 11, 2024
1 parent cf92839 commit 1a468ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 1a468ea

Please sign in to comment.