From 92f7d8ce388aa3f7093e7465a81aa9cc2e821732 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 16 Dec 2015 19:52:05 +1100 Subject: [PATCH] php - correct hour overflow calculation in howmanyhrs --- pool/base.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pool/base.php b/pool/base.php index 35523c92..4430a175 100644 --- a/pool/base.php +++ b/pool/base.php @@ -123,10 +123,10 @@ function howmanyhrs($tot, $days = false, $dh = false) if ($min >= 30) { $hr++; - if ($hr == 24) + if ($hr > 23) { - $days++; - $hr = 0; + $dy++; + $hr -= 24; } } $ds = '';