From 498f13c0024eedeefa508e6d3d0092d1e12f6599 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 31 Jul 2003 09:56:29 +0000 Subject: - 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. --- modules/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node.module') 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 { -- cgit v1.2.3