Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

Conversation

tgv604
Copy link
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

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

@Quy
Copy link
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