diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-08-27 08:20:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-08-27 08:20:57 +0000 |
commit | 098ab8ef828e5a0c7c1a8c0299580c07a0e5bf3e (patch) | |
tree | 782b03bbfb9afe1690dcb4a609aa679fd9dd93ae /modules/node/node.module | |
parent | cb3e766c07f682fa4124f91efb2d0800e84a599d (diff) | |
download | brdo-098ab8ef828e5a0c7c1a8c0299580c07a0e5bf3e.tar.gz brdo-098ab8ef828e5a0c7c1a8c0299580c07a0e5bf3e.tar.bz2 |
- fixed bug in node.listing as reported by Julian
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 937b62983..51f081b09 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -187,12 +187,12 @@ function node_delete($id) { function node_query($type = -1) { $queries[] = array("all nodes: recent additions", "ORDER BY timestamp DESC"); - $queries[] = array("all nodes: status set to 'posted'", "WHERE status = ". node_status("posted") ." ORDER BY timestamp DESC"); - $queries[] = array("all nodes: status set to 'queued'", "WHERE status = ". node_status("queued") ." ORDER BY timestamp DESC"); - $queries[] = array("all nodes: status set to 'dumped'", "WHERE status = ". node_status("dumped") ." ORDER BY timestamp DESC"); - $queries[] = array("all nodes: scheduled to be posted", "WHERE timestamp_posted > 0 ORDER BY timestamp DESC"); - $queries[] = array("all nodes: scheduled to be queued", "WHERE timestamp_queued > 0 ORDER BY timestamp DESC"); - $queries[] = array("all nodes: scheduled to be hidden", "WHERE timestamp_hidden > 0 ORDER BY timestamp DESC"); + $queries[] = array("all nodes: status set to 'posted'", "WHERE n.status = ". node_status("posted") ." ORDER BY n.timestamp DESC"); + $queries[] = array("all nodes: status set to 'queued'", "WHERE n.status = ". node_status("queued") ." ORDER BY n.timestamp DESC"); + $queries[] = array("all nodes: status set to 'dumped'", "WHERE n.status = ". node_status("dumped") ." ORDER BY n.timestamp DESC"); + $queries[] = array("all nodes: scheduled to be posted", "WHERE timestamp_posted > 0 ORDER BY n.timestamp DESC"); + $queries[] = array("all nodes: scheduled to be queued", "WHERE timestamp_queued > 0 ORDER BY n.timestamp DESC"); + $queries[] = array("all nodes: scheduled to be hidden", "WHERE timestamp_hidden > 0 ORDER BY n.timestamp DESC"); foreach (module_list() as $name) { if (module_hook($name, "status")) { |