joomla/joomla-platform — pull request #668 by elinw (2011-12-22 15:52:42+00:00)
Title: Code from Alan Langford as submitted in the CMS tracker item #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.