summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/menu.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index da2f8a2..68f3fd2 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -531,7 +531,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']);
}