From d7e0e99ce1e07786d62ae438e99b04cf10f7abcc Mon Sep 17 00:00:00 2001 From: DNA-styx <154759339+DNA-styx@users.noreply.github.com> Date: Tue, 31 Dec 2024 00:16:35 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20https://github.com/NiDE-g?= =?UTF-8?q?g/hlstatsx-community-edition/pull/8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/sig.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/web/sig.php b/src/web/sig.php index 669f08e8..5c241fdd 100644 --- a/src/web/sig.php +++ b/src/web/sig.php @@ -404,10 +404,11 @@ function f_num($number) { $timestamp = $playerdata['connection_time']; $days = floor($timestamp / 86400); $hours = $days * 24; - $hours += floor($timestamp / 3600 % 24); - if ($hours < 10) - $hours = '0'.$hours; - $min = floor($timestamp / 60 % 60); + $hours += floor($timestamp / 3600) % 24; + if ($hours < 10) { + $hours = '0' . (int)$hours; + } + $min = floor($timestamp / 60) % 60; if ($min < 10) $min = '0'.$min; $sec = floor($timestamp % 60); @@ -470,4 +471,4 @@ function f_num($number) { imagedestroy($watermark); } -?> +?> \ No newline at end of file