Commit 6cff8c65 authored by webchick's avatar webchick

Issue #2106129 by mmilano: Fixed drupal_valid_path() Notice: Undefined variable: form_item().

parent ec3616fd
...@@ -201,8 +201,8 @@ function drupal_valid_path($path, $dynamic_allowed = FALSE) { ...@@ -201,8 +201,8 @@ function drupal_valid_path($path, $dynamic_allowed = FALSE) {
elseif ($dynamic_allowed && preg_match('/\/\%/', $path)) { elseif ($dynamic_allowed && preg_match('/\/\%/', $path)) {
// Path is dynamic (ie 'user/%'), so check directly against menu_router table. // Path is dynamic (ie 'user/%'), so check directly against menu_router table.
if ($item = db_query("SELECT * FROM {menu_router} where path = :path", array(':path' => $path))->fetchAssoc()) { if ($item = db_query("SELECT * FROM {menu_router} where path = :path", array(':path' => $path))->fetchAssoc()) {
$item['link_path'] = $form_item['link_path']; $item['link_path'] = $item['path'];
$item['link_title'] = $form_item['link_title']; $item['link_title'] = $item['title'];
$item['external'] = FALSE; $item['external'] = FALSE;
$item['options'] = ''; $item['options'] = '';
_menu_link_translate($item); _menu_link_translate($item);
......
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