summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-31 09:56:29 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-31 09:56:29 +0000
commit498f13c0024eedeefa508e6d3d0092d1e12f6599 (patch)
treed01a165dd17aea6c052fad8ac4c703c35d286708 /modules
parent869d8c6707f8aa02b56186204eadfe0dd30ace0e (diff)
downloadbrdo-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')
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 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 {
diff --git a/modules/node/node.module b/modules/node/node.module
index f890985db..610c65b9a 100644
--- a/modules/node/node.module
+++ b/modules/node/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 {