From ce8e2643823724dc0b263704313be9917759479f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Jul 2004 05:46:12 +0000 Subject: - Patch #9262 by Ber / JonBob: the menu did not build correctly, thus the additional menu's were never displayed, but were saved. Only the last custom menu was displayed. --- includes/menu.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/menu.inc b/includes/menu.inc index 95d47ed9b..a3553d250 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -696,7 +696,10 @@ function _menu_build() { // Next, add any custom items added by the administrator. else if ($item->type & MENU_CREATED_BY_ADMIN) { $_menu['items'][$item->mid] = array('pid' => $item->pid, 'path' => $item->path, 'title' => $item->title, 'access' => TRUE, 'weight' => $item->weight, 'type' => $item->type, 'callback' => '', 'callback arguments' => array()); - $_menu['path index'][$item->path] = $item->mid; + + if (!empty($item->path)) { + $_menu['path index'][$item->path] = $item->mid; + } } } } -- cgit v1.2.3