Skip to content

Commit

Permalink
Correct count() test in __viewIndex()
Browse files Browse the repository at this point in the history
Put `> 0` outside `count()` - see symphonists#60 for more info.
  • Loading branch information
cylkee authored Feb 28, 2020
1 parent 4ab93c7 commit 8fcbbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/content.indexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function __viewIndex() {
$col_name->appendChild(Widget::Input("items[{$section->get('id')}]", null, 'checkbox'));
}

if ($index && isset($index['fields']) && count($index['fields'] > 0)) {
if ($index && isset($index['fields']) && (count($index['fields']) > 0)) {
$section_fields = $section->fetchFields();
$fields = $this->_indexes[$section->get('id')]['fields'];
$fields_list = '';
Expand Down

0 comments on commit 8fcbbe2

Please sign in to comment.