commit | 597eb2178a0e51c105ea1d15717a9912450eb110 | [log] [tgz] |
---|---|---|
author | Roger Herbert <rogerlherbert@gmail.com> | Wed Mar 14 09:06:17 2012 +0000 |
committer | Roger Herbert <rogerlherbert@gmail.com> | Wed Mar 14 09:06:17 2012 +0000 |
tree | 43b785cd840e27e59ca7a3cb967910cd97182e6f | |
parent | 8d69aa166ca642cbbaed561878e22470720ecb78 [diff] [blame] |
check array count for seconds unit too
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php index 9eea025..2cbfd5a 100644 --- a/system/helpers/date_helper.php +++ b/system/helpers/date_helper.php
@@ -255,7 +255,7 @@ $seconds -= $minutes * 60; } - if ($str == '') + if (count($str) === 0) { $str[] = $seconds.' '.$CI->lang->line((($seconds > 1) ? 'date_seconds' : 'date_second')); }