Commit 498f13c0 authored by Dries's avatar Dries
Browse files

- If $node->path has been initialized (via a form for example), node_url will...

- 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.
parent 869d8c67
...@@ -869,7 +869,7 @@ function node_get_alias($path) { ...@@ -869,7 +869,7 @@ function node_get_alias($path) {
} }
function node_url($node) { function node_url($node) {
if ($node->path) { if ($node->path != NULL) {
return $node->path; return $node->path;
} }
else { else {
......
...@@ -869,7 +869,7 @@ function node_get_alias($path) { ...@@ -869,7 +869,7 @@ function node_get_alias($path) {
} }
function node_url($node) { function node_url($node) {
if ($node->path) { if ($node->path != NULL) {
return $node->path; return $node->path;
} }
else { else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment