From a4dbe96e53d99367c1b48076ec8b47562507bfe6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 4 Mar 2014 11:37:18 +0000 Subject: [PATCH] TimeUnless gives '' for no time --- application/views/helpers/TimeUnless.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/views/helpers/TimeUnless.php b/application/views/helpers/TimeUnless.php index 2a9b4c6ee..6fde74f91 100644 --- a/application/views/helpers/TimeUnless.php +++ b/application/views/helpers/TimeUnless.php @@ -38,6 +38,7 @@ class Zend_View_Helper_TimeUnless extends Zend_View_Helper_Abstract { public function timeUnless($timestamp) { + if (! $timestamp) return ''; return '' . Format::timeUntil($timestamp) . '';