summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2011-09-16 11:51:45 -0400
committerDries Buytaert2011-09-16 11:51:45 -0400
commita1c091cef3f14885ec55a3ca187a32681e279413 (patch)
tree84bb3f294b46c7a36fff91e1d7e51126a8534f23
parentd36af64d46f56f9c738a3e4c1837a1b4d593d305 (diff)
- Patch #1279888 by 10oclock: missing table prefix on query in node_feed().
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 92c6795..5860426 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -2452,7 +2452,7 @@ function node_feed($nids = FALSE, $channel = array()) {
$nids = db_select('node', 'n')
->fields('n', array('nid', 'created'))
->condition('n.promote', 1)
- ->condition('status', 1)
+ ->condition('n.status', 1)
->orderBy('n.created', 'DESC')
->range(0, variable_get('feed_default_items', 10))
->addTag('node_access')