We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf92839 commit 1a468eaCopy full SHA for 1a468ea
classes/helper.php
@@ -162,7 +162,7 @@ public static function cli_return_status_display(int $status): string {
162
* @return string
163
*/
164
public static function http_status_display(int $status): string {
165
- $spanclass = 'badge ' . self::STATUS_BADGES[$status / 100];
+ $spanclass = 'badge ' . self::STATUS_BADGES[floor($status / 100)];
166
return \html_writer::tag('span', $status, ['class' => $spanclass]);
167
}
168
0 commit comments