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

merged 1 commit into from Dec 22, 2011


None yet
3 participants

elinw commented Dec 22, 2011

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.


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