donwtime/view: Fix condition statement

refs #9266
This commit is contained in:
Alexander Fuhr 2015-08-10 12:32:15 +02:00
parent 073d695c94
commit 72cf023bf8
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if (empty($object->comments) && ! $addLink) {
$this->timeUntil($downtime->end)
);
} else {
if ($downtime->start <= time() && ! (bool) $downtime->is_in_effect) {
if ($downtime->start <= time()) {
$state = sprintf(
$this->translate('ends %s', 'Last format parameter represents the end time'),
$this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end)