diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-02-10 10:00:00 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-02-10 10:00:00 +0000 |
commit | d9f7210f9dcef141622dad998e9b2b1a136e8857 (patch) | |
tree | 5d308281decffd62866277857d04e5edce964550 /lib.php | |
parent | 3baebd9c4f438534ff6a0104091105468a7fd910 (diff) | |
download | pkgsubmit-d9f7210f9dcef141622dad998e9b2b1a136e8857.tar pkgsubmit-d9f7210f9dcef141622dad998e9b2b1a136e8857.tar.gz pkgsubmit-d9f7210f9dcef141622dad998e9b2b1a136e8857.tar.bz2 pkgsubmit-d9f7210f9dcef141622dad998e9b2b1a136e8857.tar.xz pkgsubmit-d9f7210f9dcef141622dad998e9b2b1a136e8857.zip |
Fix one last warning
Diffstat (limited to 'lib.php')
-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") { |