From f3cd2da113853bef53b733a09a92e59c04d5ec51 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 6 Apr 2007 04:39:51 +0000 Subject: #130991: Custom menu items, part 1 --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index bbad3def2..02fc04681 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -378,7 +378,7 @@ function system_main_admin_page($arg = NULL) { function system_admin_menu_block($item) { $map = arg(NULL); $content = array(); - $result = db_query('SELECT * FROM {menu} WHERE depth = %d AND %d < mleft AND mright < %d ORDER BY mleft', $item->depth + 1, $item->mleft, $item->mright); + $result = db_query('SELECT * FROM {menu} WHERE depth = %d AND %d < mleft AND mright < %d AND visible = 1 ORDER BY mleft', $item->depth + 1, $item->mleft, $item->mright); while ($item = db_fetch_object($result)) { _menu_translate($item, $map, MENU_RENDER_LINK); if (!$item->access) { -- cgit v1.2.3