mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
TimeUnless gives '' for no time
This commit is contained in:
parent
db8280ef3b
commit
a4dbe96e53
@ -38,6 +38,7 @@ class Zend_View_Helper_TimeUnless extends Zend_View_Helper_Abstract
|
|||||||
{
|
{
|
||||||
public function timeUnless($timestamp)
|
public function timeUnless($timestamp)
|
||||||
{
|
{
|
||||||
|
if (! $timestamp) return '';
|
||||||
return '<span class="timeunless">'
|
return '<span class="timeunless">'
|
||||||
. Format::timeUntil($timestamp)
|
. Format::timeUntil($timestamp)
|
||||||
. '</span>';
|
. '</span>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user