summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-22 09:09:06 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-22 09:09:06 +0000
commitdf3b371853e6a990405483b5ce98f6402b7631b3 (patch)
treeaa57073e32b382d6ecd0c54eb42c0e43836565fb
parente3f1c92d261a899ff319c490d3c307edf3978f54 (diff)
downloadbrdo-df3b371853e6a990405483b5ce98f6402b7631b3.tar.gz
brdo-df3b371853e6a990405483b5ce98f6402b7631b3.tar.bz2
- Patch #15976 by Neil: if one single admin modifiable menu item is added then it is not put in the menu table because the comparison is > 1 instead of > 0.
-rw-r--r--includes/menu.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 4e0eafce1..490558d4e 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -532,7 +532,7 @@ function menu_rebuild() {
}
}
- if (count($new_items) > 1) {
+ if (count($new_items) > 0) {
foreach ($new_items as $item) {
db_query('INSERT INTO {menu} (mid, pid, path, title, description, weight, type) VALUES (%d, %d, \'%s\', \'%s\', \'%s\', %d, %d)', $item['mid'], $item['pid'], $item['path'], $item['title'], $item['description'], $item['weight'], $item['type']);
}