Skip to content

Check array bounds in menu tree before checking whether menu item is in path#200

Closed
seanredmond wants to merge 2 commits intojoomla:masterfrom
seanredmond:master
Closed

Check array bounds in menu tree before checking whether menu item is in path#200
seanredmond wants to merge 2 commits intojoomla:masterfrom
seanredmond:master

Conversation

@seanredmond
Copy link
Copy Markdown

The current code generates many non-fatal (but annoying) "Undefined offset" notices. Before checking whether a menu item is in the path, first check whether there is an item at that array index.

…in path

Before checking whether an menu item is in the path, first check
whether there is an item at that array index to avoid many non-fatal
(but annoying) "Undefined offset" notices
@infograf768
Copy link
Copy Markdown
Member

Please, if not done, open a bugtracker on joomlacode with precise test instructions and cross reference here.

@seanredmond
Copy link
Copy Markdown
Author

@phproberto
Copy link
Copy Markdown
Contributor

I'm closing this as it's not mergeable and 1 year old. Feel free to open if you update it and are still interested in get it merged.

Thanks for contributing.

@phproberto phproberto closed this Oct 3, 2013
@ghost
Copy link
Copy Markdown

ghost commented Feb 7, 2014

Same warning with Joomla 3.2.2.

wilsonge pushed a commit that referenced this pull request Jun 4, 2017
roland-d added a commit to roland-d/joomla-cms that referenced this pull request Jul 23, 2018
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.

3 participants