diff --git a/modules/path.module b/modules/path.module index d93ca5cef7345eece944257cb3e711eefbc9bf94..f6f43125b071713108e0f8319a32f37243beb055 100644 --- a/modules/path.module +++ b/modules/path.module @@ -265,7 +265,7 @@ function path_form_alter($form_id, &$form) { '#collapsed' => TRUE, '#description' => t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'), ); - if ($node->path) { + if ($path) { $form['path']['pid'] = array( '#type' => 'value', '#value' => db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'", $path)) diff --git a/modules/path/path.module b/modules/path/path.module index d93ca5cef7345eece944257cb3e711eefbc9bf94..f6f43125b071713108e0f8319a32f37243beb055 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -265,7 +265,7 @@ function path_form_alter($form_id, &$form) { '#collapsed' => TRUE, '#description' => t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'), ); - if ($node->path) { + if ($path) { $form['path']['pid'] = array( '#type' => 'value', '#value' => db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'", $path))