summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rothstein2012-12-09 16:10:54 (GMT)
committer David Rothstein2012-12-09 16:10:54 (GMT)
commit82a360da5ef8c5e376b007f5e8282cf0e65a80d5 (patch)
tree97392900522e25e4e139893955d6640c21732212
parenteb1be6311e85b30bb46e85a348de6af2fd4eb84d (diff)
Issue #1847382 by thehong, pingwin4eg, 63reasons: Fixed Undefined index: access in includes/menu.inc (when custom access_callback() does not exist or does not get included).
-rw-r--r--includes/menu.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 0cb9d23..2be0903 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -618,6 +618,7 @@ function _menu_load_objects(&$item, &$map) {
* $item['access'] becomes TRUE if the item is accessible, FALSE otherwise.
*/
function _menu_check_access(&$item, $map) {
+ $item['access'] = FALSE;
// Determine access callback, which will decide whether or not the current
// user has access to this path.
$callback = empty($item['access_callback']) ? 0 : trim($item['access_callback']);