Skip to content

Commit 6890272

Browse files
authored
[4.0] - [workflow] fix undefined condition
1 parent 4b3d111 commit 6890272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/com_content/tmpl/category/blog_item.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<?php echo LayoutHelper::render('joomla.content.intro_image', $this->item); ?>
3131

3232
<div class="item-content">
33-
<?php if ($this->item->condition == 3 || strtotime($this->item->publish_up) > strtotime(Factory::getDate())
33+
<?php if ($this->item->state_condition == 3 || strtotime($this->item->publish_up) > strtotime(Factory::getDate())
3434
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != Factory::getDbo()->getNullDate())) : ?>
3535
<div class="system-unpublished">
3636
<?php endif; ?>
@@ -84,7 +84,7 @@
8484

8585
<?php endif; ?>
8686

87-
<?php if ($this->item->condition == 2 || strtotime($this->item->publish_up) > strtotime(Factory::getDate())
87+
<?php if ($this->item->state_condition == 2 || strtotime($this->item->publish_up) > strtotime(Factory::getDate())
8888
|| ((strtotime($this->item->publish_down) < strtotime(Factory::getDate())) && $this->item->publish_down != Factory::getDbo()->getNullDate())) : ?>
8989
</div>
9090
<?php endif; ?>

0 commit comments

Comments
 (0)