]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
Fix a bug in time2strclock() in lib/functions.php3. Seconds ammount more than 9 would...
authorkkalev <kkalev>
Mon, 29 Apr 2002 17:31:56 +0000 (17:31 +0000)
committerkkalev <kkalev>
Mon, 29 Apr 2002 17:31:56 +0000 (17:31 +0000)
Bug noted by Timophey <bcloud@mail.ru>

Changelog
lib/functions.php3

index cba723dc8ce087eed0ab7f8865463eb2aa019e54..450c40d8df6e392495ef21cd7357f3a7c1509289 100644 (file)
--- 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 <bcloud@mail.ru>
 Ver 1.29:
 * Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and
   radaclient).
index 7e811602628bf2c676a42c9e31e3395d1d35db2e..48bbc407b2445fda91369ad40b61e1b0bc7d35cf 100644 (file)
@@ -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";