Joomla CMS [#27280] Invalid foreach in com_content route* #668

Merged
merged 1 commit into from Dec 22, 2011

Conversation

Projects
None yet
3 participants
Contributor

elinw commented Dec 22, 2011

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=27280

ContentHelperRoute::_findItem can toss an invalid foreach error (line 135)
thanks to a null result from JMenu::getItems().

This patch causes an empty array to be returned instead of null.

Contributor

joomla-jenkins commented Dec 22, 2011

Unit testing complete. There were 0 failures and 0 errors from 1971 tests and 11142 assertions.
Checkstyle analysis reported 199 warnings and 0 errors.

ianmacl merged commit 5c33306 into joomla:staging Dec 22, 2011

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