diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-10-17 18:18:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-10-17 18:18:35 +0000 |
commit | f295648cb12b574c03862e0a6fb11ed7218657b0 (patch) | |
tree | 1ce12584626931871e070d4e3a82a5b6eb8bc479 /node.php | |
parent | af6c2808fca8da9011e287a578a8607f2498dddc (diff) | |
download | brdo-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |