Commit e2ade026 authored by drumm's avatar drumm

#71629 by keve, fix an undefined index.

parent 9f1450c9
......@@ -1244,7 +1244,9 @@ function _menu_append_contextual_items() {
$mid = $_menu['path index'][$item['path']];
if ($_menu['items'][$mid]['type'] & MENU_CREATED_BY_ADMIN) {
$_menu['items'][$mid]['access'] = $item['access'];
$_menu['items'][$mid]['callback'] = $item['callback'];
if (isset($_menu['items'][$mid]['callback'])) {
$_menu['items'][$mid]['callback'] = $item['callback'];
}
if (isset($_menu['items'][$mid]['callback arguments'])) {
$_menu['items'][$mid]['callback arguments'] = $item['callback arguments'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment