TimeUnless gives '' for no time

This commit is contained in:
Thomas Gelf 2014-03-04 11:37:18 +00:00
parent db8280ef3b
commit a4dbe96e53
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class Zend_View_Helper_TimeUnless extends Zend_View_Helper_Abstract
{
public function timeUnless($timestamp)
{
if (! $timestamp) return '';
return '<span class="timeunless">'
. Format::timeUntil($timestamp)
. '</span>';