Closed (fixed)
Project:
Drupal core
Version:
6.4
Component:
menu system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2008 at 06:55 UTC
Updated:
23 Apr 2013 at 18:03 UTC
This is probably a bug in views, but nevertheless a check should be in the function.
While using views I created a view with arguments and got the error below on all of the view's pages:
# warning: Invalid argument supplied for foreach() in [blahblah]/includes/menu.inc on line 376.
So I went in there and fixed it. I added:
if (is_array($load_functions)) { // line #376
And the closing bracket on line #420.
This is minor but it's good practice to check that the loop variable is an actual array...
Comments
Comment #1
dpearcefl commentedIs this issue fixed in the latest D6? is there any interest in pursuing this issue?
Comment #2
dpearcefl commentedComment #3
johnvClosing, as there is no response.
In D7.22, this has been corrected. This is the code: