diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-07-31 09:56:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-07-31 09:56:29 +0000 |
commit | 498f13c0024eedeefa508e6d3d0092d1e12f6599 (patch) | |
tree | d01a165dd17aea6c052fad8ac4c703c35d286708 /modules/node.module | |
parent | 869d8c6707f8aa02b56186204eadfe0dd30ace0e (diff) | |
download | brdo-498f13c0024eedeefa508e6d3d0092d1e12f6599.tar.gz brdo-498f13c0024eedeefa508e6d3d0092d1e12f6599.tar.bz2 |
- If $node->path has been initialized (via a form for example), node_url will return it. This is not good because path could still be null (empty). Patch by Matt Westgate.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module index f890985db..610c65b9a 100644 --- a/modules/node.module +++ b/modules/node.module @@ -869,7 +869,7 @@ function node_get_alias($path) { } function node_url($node) { - if ($node->path) { + if ($node->path != NULL) { return $node->path; } else { |