diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-06-27 19:39:37 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-06-27 19:39:37 +0000 |
commit | 59fcc04bb1e92ce0476ae3eecf8d4967c9dd3133 (patch) | |
tree | fecddc3c4605ca31a26f51d9a162fd666a3ff59c /index.php | |
parent | cafd1fd33d9a5b5da91c1353571c0369541a785c (diff) | |
download | pkgsubmit-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.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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]) |