If the user can't see any items @ ?q=admin, they receive the following error:
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/head/modules/system/system.module on line 2165.
To reproduce this, give a user only "access administration pages" permission and nothing else. Apply the patch here: http://drupal.org/node/92015 to fix the "view logs coupled to access administration pages" bug. Go to ?q=admin. I think this can also be reproduced by manually moving all admin menus to something else like "Primary Links" or what have you.
At any rate, we should do something nicer than spit out an error when there's nothing to see here. :)
Comments
Comment #1
webchickThis is a perfect example of why we should Make Drupal E_ALL compliant; this error likely would've been caught months ago.
Comment #2
webchickComment #3
ChrisKennedy commentedIt does indeed work. Syncing with HEAD.
Comment #4
dries commentedCommitted to CVS HEAD.
Comment #5
(not verified) commented