- Fixed bug #3398: Error in SQL query in node.module (syndicate block)
parent
fa2581edcf
commit
463ccb4df6
|
@ -957,7 +957,7 @@ function node_feed($nodes = 0, $channel = array()) {
|
|||
*/
|
||||
|
||||
if (!$nodes) {
|
||||
$nodes = db_query_range("SELECT nid, FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
|
||||
$nodes = db_query_range("SELECT nid FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
|
||||
}
|
||||
|
||||
while ($node = db_fetch_object($nodes)) {
|
||||
|
|
|
@ -957,7 +957,7 @@ function node_feed($nodes = 0, $channel = array()) {
|
|||
*/
|
||||
|
||||
if (!$nodes) {
|
||||
$nodes = db_query_range("SELECT nid, FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
|
||||
$nodes = db_query_range("SELECT nid FROM {node} WHERE promote = '1' AND status = '1' ORDER BY created DESC", 0, 15);
|
||||
}
|
||||
|
||||
while ($node = db_fetch_object($nodes)) {
|
||||
|
|
Loading…
Reference in New Issue