summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-15 15:07:08 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-15 15:07:08 +0200
commitd9b44bef948928739b2b96b43d78b7629c0ccc15 (patch)
tree7912f2cdfd955862191066850db42b500f1e9ae0 /system
parente446ad337945b7839b73f13531b21ed16ece241e (diff)
Fix issue #520
Diffstat (limited to 'system')
-rw-r--r--system/helpers/date_helper.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 077a6712c..065a223ef 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -488,6 +488,10 @@ if ( ! function_exists('nice_date'))
{
return 'Unknown';
}
+ elseif (empty($format))
+ {
+ $format = 'U';
+ }
// Date like: YYYYMM
if (preg_match('/^\d{6}$/i', $bad_date))