Skip to content

Commit

Permalink
Fix count() in PHP 7.2 (#19396)
Browse files Browse the repository at this point in the history
* Fix count()

* Simplify check
  • Loading branch information
Quy authored and zero-24 committed Feb 7, 2018
1 parent 056a9f8 commit 7757e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_content/models/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function &getChildren()
}

// Order subcategories
if (count($this->_children))
if ($this->_children)
{
$params = $this->getState()->get('params');

Expand Down

0 comments on commit 7757e61

Please sign in to comment.