Commit e4325eb0 authored by Dries's avatar Dries

- Patch #22215 by Richard Archer: fixed glitch in the upgrade path for primary/secondary links.

parent 54e13b5f
......@@ -1071,7 +1071,9 @@ function update_151() {
$mid = db_next_id('{menu}_mid');
$ret[] = update_sql("INSERT INTO {menu} (mid, pid, path, title, description, weight, type) " .
"VALUES ($mid, {$menus[$loop]['pid']}, '$link_path', '{$links['text'][$i]}', '{$links['description'][$i]}', 0, 118)");
"VALUES ($mid, {$menus[$loop]['pid']}, '" . db_escape_string($link_path) .
"', '" . db_escape_string($links['text'][$i]) .
"', '" . db_escape_string($links['description'][$i]) . "', 0, 118)");
}
}
// delete Secondary links if not populated.
......
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