diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-07-14 05:46:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-07-14 05:46:12 +0000 |
commit | ce8e2643823724dc0b263704313be9917759479f (patch) | |
tree | 5cb529c18430f04bb1a60c1316d80fac3f066790 /includes | |
parent | 9b49f01f11e3dd19c3ee9a53d1cd1f786188234d (diff) | |
download | brdo-ce8e2643823724dc0b263704313be9917759479f.tar.gz brdo-ce8e2643823724dc0b263704313be9917759479f.tar.bz2 |
- 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.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 5 |
1 files changed, 4 insertions, 1 deletions
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; + } } } } |