summaryrefslogtreecommitdiff
path: root/includes/node.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-16 11:33:14 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-16 11:33:14 +0000
commit2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4 (patch)
tree51c3918085542ee9487bfb4bc95feee502281eec /includes/node.inc
parentf358893b52f364aefbdab41a5e1407d54f0c2b59 (diff)
downloadbrdo-2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4.tar.gz
brdo-2d1e9126cb10f52e7711ce121f8bdaa5bdc71aa4.tar.bz2
- Added the new user module!
Diffstat (limited to 'includes/node.inc')
-rw-r--r--includes/node.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/node.inc b/includes/node.inc
index 70a0472af..918678035 100644
--- a/includes/node.inc
+++ b/includes/node.inc
@@ -16,7 +16,7 @@ function _node_get($conditions) {
}
if ($type) {
- return db_query("SELECT n.*, l.*, u.name FROM node n LEFT JOIN $type l ON n.lid = l.lid AND n.nid = l.nid LEFT JOIN users u ON n.author = u.id WHERE $where ORDER BY n.timestamp DESC");
+ return db_query("SELECT n.*, l.*, u.uid, u.name FROM node n LEFT JOIN $type l ON n.lid = l.lid AND n.nid = l.nid LEFT JOIN user u ON n.author = u.uid WHERE $where ORDER BY n.timestamp DESC");
}
}
@@ -190,7 +190,7 @@ function node_control($node) {
</SCRIPT>
<?php
- if ($user->id) {
+ if ($user->uid) {
$choices = array("node.php?id=$node->nid" => t("view node"), "submit.php?mod=$node->type" => t("add node"), "submit.php?mod=$node->type&op=update&id=$node->nid" => t("update node"), "node.php?op=history&id=$node->nid" => t("view history"));
}
else {
@@ -236,7 +236,7 @@ function node_index($node) {
function node_access($node) {
global $user, $status;
- return ($node->status == $status[posted]) || ($node->status == $status[queued] && $user->id) || user_access("administer nodes");
+ return ($node->status == $status[posted]) || ($node->status == $status[queued] && $user->uid) || user_access("administer nodes");
}