summaryrefslogtreecommitdiff
path: root/includes/menu.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-12-09 11:10:54 -0500
committerDavid Rothstein <drothstein@gmail.com>2012-12-09 11:10:54 -0500
commit82a360da5ef8c5e376b007f5e8282cf0e65a80d5 (patch)
tree97392900522e25e4e139893955d6640c21732212 /includes/menu.inc
parenteb1be6311e85b30bb46e85a348de6af2fd4eb84d (diff)
downloadbrdo-82a360da5ef8c5e376b007f5e8282cf0e65a80d5.tar.gz
brdo-82a360da5ef8c5e376b007f5e8282cf0e65a80d5.tar.bz2
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).
Diffstat (limited to 'includes/menu.inc')
-rw-r--r--includes/menu.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 0cb9d23b8..2be090327 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']);