summaryrefslogtreecommitdiff
path: root/modules/path.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/path.module')
-rw-r--r--modules/path.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/path.module b/modules/path.module
index d93ca5cef..f6f43125b 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))