Closed (duplicate)
Project:
Zen
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2008 at 04:54 UTC
Updated:
14 May 2008 at 12:08 UTC
array index is being accessed without being verified if it even exist.
i apologize to mark this RTBC but i ahve a feeling setting it to 'code needs review' wont be enough. patch is small enough to go straight for RTBC.
thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| template-menus.php_.patch | 671 bytes | litwol |
Comments
Comment #1
johnalbinA full error message would have been useful. Especially since I've never seen a warning message appear from within template-menus.php.
Also, I have a feeling this might only show up occasionally, under what circumstances do you experience this warning notice?
Comment #2
litwol commentedi hate to come off as a smart ass, but i experience this warning when type is index is being access withut being set.
Comment #3
johnalbinOleg, on what page or under what circumstances is
$link['type']not set?The patch does look RTBC, but I need to reproduce the bug in order to verify the patch fixes the bug.
Comment #4
litwol commentedunfortunately this has been too long ago and i do not recall the circumstances.
Comment #5
johnalbinI think this might hint at a bug in the Drupal 6 menu system, but I can’t verify the bug, so perhaps it's been fixed.
Comment #6
litwol commentedif you are implying that $link['type'] must _always_ be set in drupal core... if so then yes. otherwise this is not a drupal bug and a check should be made if array key exists before accessing it...
Comment #7
johnalbinYou know what, I think this is a dupe of #207321: Zen 6.x: PHP Notice in template-menus.php on pages with tabs
Which was a bug in Drupal 6 before 6.0-rc3.