Skip to content
Snippets Groups Projects
Commit 82a360da authored by David Rothstein's avatar David Rothstein
Browse files

Issue #1847382 by thehong, pingwin4eg, 63reasons: Fixed Undefined index:...

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).
parent eb1be631
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment