Skip to content

Commit 5b741a1

Browse files
authored
undefined condition
1 parent 6890272 commit 5b741a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/com_content/tmpl/category/default_articles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<?php endif; ?>
153153
<tbody>
154154
<?php foreach ($this->items as $i => $article) : ?>
155-
<?php if ($this->items[$i]->condition == 2) : ?>
155+
<?php if ($this->items[$i]->state_condition == 2) : ?>
156156
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
157157
<?php else : ?>
158158
<tr class="cat-list-row<?php echo $i % 2; ?>" >
@@ -197,7 +197,7 @@
197197
<?php endforeach; ?>
198198
<?php endif; ?>
199199
<?php endif; ?>
200-
<?php if ($article->condition == 2) : ?>
200+
<?php if ($article->state_condition == 2) : ?>
201201
<span class="list-published label label-warning">
202202
<?php echo JText::_('JUNPUBLISHED'); ?>
203203
</span>

0 commit comments

Comments
 (0)