#71629 by keve, fix an undefined index.

5.x
Neil Drumm 2006-07-02 18:56:42 +00:00
parent 9f1450c989
commit e2ade02680
1 changed files with 3 additions and 1 deletions

View File

@ -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'];
}