diff options
author | David Rothstein <drothstein@gmail.com> | 2014-05-05 12:19:18 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-05-05 12:19:18 -0400 |
commit | f91bb951d18a50653cb1937f89b6e7134817c29b (patch) | |
tree | 31abf0473c113eddb5da0c19755adbf7c30283ef /includes | |
parent | 478d1a04962de0ae6ef93fc2bde0c751840d36e6 (diff) | |
download | brdo-f91bb951d18a50653cb1937f89b6e7134817c29b.tar.gz brdo-f91bb951d18a50653cb1937f89b6e7134817c29b.tar.bz2 |
Issue #2106129 by brad.bulger, mmilano: Fix PHP notice in drupal_valid_path(): Undefined variable: form_item.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/path.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/path.inc b/includes/path.inc index 234430ea1..2e3571114 100644 --- a/includes/path.inc +++ b/includes/path.inc @@ -560,8 +560,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); |