summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2012-06-27 19:39:37 +0000
committerPascal Terjan <pterjan@mageia.org>2012-06-27 19:39:37 +0000
commit59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133 (patch)
treefecddc3c4605ca31a26f51d9a162fd666a3ff59c /index.php
parentcafd1fd33d9a5b5da91c1353571c0369541a785c (diff)
downloadpkgsubmit-59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133.tar
pkgsubmit-59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133.tar.gz
pkgsubmit-59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133.tar.bz2
pkgsubmit-59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133.tar.xz
pkgsubmit-59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133.zip
Sort correctly minutes compared to seconds
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 4add4c6..18cec0b 100644
--- a/index.php
+++ b/index.php
@@ -482,6 +482,12 @@ if ($total > 0) {
if ($b[1] == 'hour' || $b[1] == 'hours')
$b[0] *= 3600;
+ if ($a[1] == 'minute' || $a[1] == 'minutes')
+ $a[0] *= 60;
+
+ if ($b[1] == 'minute' || $b[1] == 'minutes')
+ $b[0] *= 60;
+
if ($a[0] > $b[0])
return 1;
elseif ($a[0] < $b[0])