summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorRoger Herbert <rogerlherbert@gmail.com>2012-03-14 10:06:17 +0100
committerRoger Herbert <rogerlherbert@gmail.com>2012-03-14 10:06:17 +0100
commit597eb2178a0e51c105ea1d15717a9912450eb110 (patch)
tree43b785cd840e27e59ca7a3cb967910cd97182e6f /system/helpers
parent8d69aa166ca642cbbaed561878e22470720ecb78 (diff)
check array count for seconds unit too
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/date_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 9eea02561..2cbfd5a92 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -255,7 +255,7 @@ if ( ! function_exists('timespan'))
$seconds -= $minutes * 60;
}
- if ($str == '')
+ if (count($str) === 0)
{
$str[] = $seconds.' '.$CI->lang->line((($seconds > 1) ? 'date_seconds' : 'date_second'));
}