summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorRoger Herbert <rogerlherbert@gmail.com>2012-03-14 09:44:55 +0100
committerRoger Herbert <rogerlherbert@gmail.com>2012-03-14 09:44:55 +0100
commit8d69aa166ca642cbbaed561878e22470720ecb78 (patch)
tree2fd8ab97086b1bf23333557bf6276ab48b97eb4e /system/helpers
parenta5c8a6d0fb7802aaf284b7b3ef77966f43baae56 (diff)
changed default value for $units to 7
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/date_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 2ad287b4a..9eea02561 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -164,7 +164,7 @@ if ( ! function_exists('standard_date'))
*/
if ( ! function_exists('timespan'))
{
- function timespan($seconds = 1, $time = '', $units = '')
+ function timespan($seconds = 1, $time = '', $units = 7)
{
$CI =& get_instance();
$CI->lang->load('date');
@@ -181,7 +181,7 @@ if ( ! function_exists('timespan'))
if ( ! is_numeric($units))
{
- $units = 999;
+ $units = 7;
}
$seconds = ($time <= $seconds) ? 1 : $time - $seconds;