diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-04-21 12:31:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-04-21 12:31:51 +0000 |
commit | 81b05c6795b891667772557ee1ae89dc725f3ebc (patch) | |
tree | 942ee5da22eb897b7de027bdae58680cea2964b8 | |
parent | 6db29f35e98ad7a959c1db2392ba9f0a02f0149f (diff) | |
download | brdo-81b05c6795b891667772557ee1ae89dc725f3ebc.tar.gz brdo-81b05c6795b891667772557ee1ae89dc725f3ebc.tar.bz2 |
- Don't report duplicate entries - it is an OK thing to do.
-rw-r--r-- | includes/menu.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 42f1fa39e..1793bfdc4 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -4,10 +4,7 @@ function menu($path, $title, $callback = NULL, $help = NULL, $weight = 0, $hidden = 0) { global $_gmenu; - if (isset($_gmenu[$path])) { - trigger_error("trying to add '$path' which already exists"); - } - else { + if (empty($_gmenu[$path])) { // add the menu to the flat list of menu items: $_gmenu[$path] = array("title" => $title, "callback" => $callback, "help" => $help, "weight" => $weight, "hidden" => $hidden, "children" => array()); |