diff options
-rw-r--r-- | lib.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -485,7 +485,11 @@ S; $newdata = array(); foreach ($data as $duration => $count) { if (false !== strpos($duration, 'hour')) { - $newdata['60 minutes'] += $count; + if (!array_key_exists('20 minutes', $newdata)) { + $newdata['60 minutes'] = $count; + } else { + $newdata['60 minutes'] += $count; + } } else { $d = explode(' ', $duration); if ($d[0] >= 20 && $d[1] == "minutes") { |