summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-10-17 18:18:35 +0000
committerDries Buytaert <dries@buytaert.net>2001-10-17 18:18:35 +0000
commitf295648cb12b574c03862e0a6fb11ed7218657b0 (patch)
tree1ce12584626931871e070d4e3a82a5b6eb8bc479 /node.php
parentaf6c2808fca8da9011e287a578a8607f2498dddc (diff)
downloadbrdo-f295648cb12b574c03862e0a6fb11ed7218657b0.tar.gz
brdo-f295648cb12b574c03862e0a6fb11ed7218657b0.tar.bz2
- fixed a SQL typo in node.php: user --> users
- added SQL table keys for the node types
Diffstat (limited to 'node.php')
-rw-r--r--node.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.php b/node.php
index e79e551fc..f80b25373 100644
--- a/node.php
+++ b/node.php
@@ -88,7 +88,7 @@ function node_history($node) {
$number = ($title ? db_num_rows(db_query("SELECT nid FROM node WHERE title = '$title' AND status = '". node_status("posted") ."'")) : 1);
if ($number > 1) {
- $result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN user u ON n.uid = u.uid WHERE n.title = '$title' AND n.status = '". node_status("posted") ."' ORDER BY timestamp DESC");
+ $result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.title = '$title' AND n.status = '". node_status("posted") ."' ORDER BY timestamp DESC");
while ($node = db_fetch_object($result)) {
if (node_access($node)) {