Skip to content
Snippets Groups Projects
Commit df3b3718 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 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 e3f1c92d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment