From: kkalev Date: Mon, 29 Apr 2002 17:31:56 +0000 (+0000) Subject: Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would... X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=3db2de7ee2829a4d9bbde74415b0642fe6a1e06b;p=freeradius-dialup-admin.git Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would not show. Bug noted by Timophey --- 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";