From 6cff8c65fe5bf39cd4c8e242429f823afbe3fbd2 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Tue, 8 Oct 2013 22:00:28 -0700 Subject: [PATCH] Issue #2106129 by mmilano: Fixed drupal_valid_path() Notice: Undefined variable: form_item(). --- core/includes/path.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/includes/path.inc b/core/includes/path.inc index 2187dd39e0bc..9c41abd7cfba 100644 --- a/core/includes/path.inc +++ b/core/includes/path.inc @@ -201,8 +201,8 @@ function drupal_valid_path($path, $dynamic_allowed = FALSE) { elseif ($dynamic_allowed && preg_match('/\/\%/', $path)) { // 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()) { - $item['link_path'] = $form_item['link_path']; - $item['link_title'] = $form_item['link_title']; + $item['link_path'] = $item['path']; + $item['link_title'] = $item['title']; $item['external'] = FALSE; $item['options'] = ''; _menu_link_translate($item); -- GitLab