diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-30 07:47:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-30 07:47:50 +0000 |
commit | f56e7453500f69408ee479d00eaefacd185b52d3 (patch) | |
tree | bfdf0fe54711b39a85361423986b1abeb343b050 /node.php | |
parent | 9c43e8fc7a192dfe768c76a539373915bddaa0aa (diff) | |
download | brdo-f56e7453500f69408ee479d00eaefacd185b52d3.tar.gz brdo-f56e7453500f69408ee479d00eaefacd185b52d3.tar.bz2 |
- Tidied up node.inc and node.php a bit.
- Fixed annoyance in comment.inc.
Diffstat (limited to 'node.php')
-rw-r--r-- | node.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ if ($number > 1) { $result = db_query("SELECT n.*, u.userid FROM node n LEFT JOIN users u ON n.author = u.id WHERE n.title = '$title'"); while ($node = db_fetch_object($result)) { - if (node_visible($node)) { + if (node_access($node)) { $output .= "<P><B><A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A></B><BR><SMALL>$node->type - ". format_username($node->userid) ." - ". format_date($node->timestamp, "small") ."</SMALL></P>"; } } @@ -102,7 +102,7 @@ if ($number > 1) { } elseif ($number) { $node = ($title ? node_get_object(array("title" => $title)) : node_get_object(array("nid" => ($edit[id] ? $edit[id] : $id)))); - if ($node && node_visible($node)) { + if ($node && node_access($node)) { switch ($op) { case "history": $theme->header(); |