From 5900aea5385448d52ede157c19395e9e624abd02 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 23 Oct 2012 11:17:45 +0000 Subject: Do not take seconds for minutes (sorts better between builds) --- lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index 61ab44b..688ca0f 100644 --- a/lib.php +++ b/lib.php @@ -469,13 +469,13 @@ S; $newdata['60 minutes'] += $count; } else { $d = explode(' ', $duration); - if ($d[0] >= 20) { + if ($d[0] >= 20 && $d[1] == "minutes") { if (!array_key_exists('20 minutes', $newdata)) { $newdata['20 minutes'] = $count; } else { $newdata['20 minutes'] += $count; } - } elseif ($d[0] >= 10) { + } elseif ($d[0] >= 10 && $d[1] == "minutes") { if (!array_key_exists('10 minutes', $newdata)) { $newdata['10 minutes'] = $count; } else { -- cgit v1.2.1