Commit 148c23d3 authored by Dries's avatar Dries

- Fixed preview glitch in node_preview() as reported by ax.
parent 267044f0
......@@ -955,7 +955,7 @@ function node_preview($node) {
$node->uid = 0; // anonymous user
}
}
else if ($edit["uid"]) {
else if ($node->uid) {
$user = user_load(array("uid" => $node->uid));
$node->name = $user->name;
}
......
......@@ -955,7 +955,7 @@ function node_preview($node) {
$node->uid = 0; // anonymous user
}
}
else if ($edit["uid"]) {
else if ($node->uid) {
$user = user_load(array("uid" => $node->uid));
$node->name = $user->name;
}
......
Markdown is supported
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