Commit 20285868 authored by Dries's avatar Dries
Browse files

- Sometimes nodes where being displayed when they shouldn't.  Patch by
  Marco.
parent cc381c14
......@@ -51,7 +51,7 @@ function node_failure() {
$theme->footer();
}
elseif ($number) {
$node = ($title ? node_load(array("title" => $title, "status" => 1)) : node_load(array("nid" => ($edit["id"] ? $edit["id"] : $id))));
$node = ($title ? node_load(array("title" => $title, "status" => 1)) : node_load(array("status" => 1, "nid" => ($edit["id"] ? $edit["id"] : $id))));
if (node_access("view", $node)) {
if (isset($revision)) {
......
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