From 3db2de7ee2829a4d9bbde74415b0642fe6a1e06b Mon Sep 17 00:00:00 2001 From: kkalev Date: Mon, 29 Apr 2002 17:31:56 +0000 Subject: [PATCH] Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would not show. Bug noted by Timophey --- Changelog | 4 ++++ lib/functions.php3 | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index cba723d..450c40d 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +Ver 1.30: +* Add limit of results returned in accounting.php3 +* Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would not show. + Bug noted by Timophey Ver 1.29: * Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and radaclient). diff --git a/lib/functions.php3 b/lib/functions.php3 index 7e81160..48bbc40 100644 --- a/lib/functions.php3 +++ b/lib/functions.php3 @@ -52,9 +52,10 @@ function time2strclock($time) $str["min"] = "$m"; $time = $time % 60; } - if ($time) + if ($time){ if ($time < 10) $time = "0" . $time; + } else $time = "00"; $str["sec"] = "$time"; -- 2.39.5