Commit a92e93e5 authored by Dries's avatar Dries

- Patch #15976 by Neil: if one single admin modifiable menu item is added then...

- 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.
parent 04ea277e
......@@ -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']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment