Skip to content

A fix for count() misuse / Catchable fatal error (ref #14873)#14982

Closed
tgv604 wants to merge 2 commits intojoomla:stagingfrom
tgv604:patch-1
Closed

A fix for count() misuse / Catchable fatal error (ref #14873)#14982
tgv604 wants to merge 2 commits intojoomla:stagingfrom
tgv604:patch-1

Conversation

@tgv604
Copy link
Copy Markdown
Contributor

@tgv604 tgv604 commented Mar 29, 2017

line 382 assigns $this->_children = false, but count(boolean) is always 1, that causes the sorting block to execute and fail with fatal error.

if ($this->_children) would fix this bug,
if (count($this->_children) > 1) fixes the bug and skips sorting of one-member arrays

Pull Request for Issue #14873.

please see issue #14873

line 382 assigns $this->_children = false, but count(boolean) is always 1, that causes the sorting block to execute and fail with fatal error.

if ($this->_children) would fix this bug, 
if (count($this->_children) > 1) fixes the bug and skips sorting of one-member arrays
@joomla-cms-bot
Copy link
Copy Markdown

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/14982

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Jan 17, 2018

See #19396


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14982.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants