Commit 074848d0 authored by Dries's avatar Dries

#1065968 by droplet: fixed function node_get_recent().

parent 768208f8
...@@ -2192,7 +2192,7 @@ function node_get_recent($number = 10) { ...@@ -2192,7 +2192,7 @@ function node_get_recent($number = 10) {
} }
$nids = $query $nids = $query
->fields('n', array('nid')) ->fields('n', array('nid'))
->orderBy('changed', 'DESC') ->orderBy('n.changed', 'DESC')
->range(0, $number) ->range(0, $number)
->addTag('node_access') ->addTag('node_access')
->execute() ->execute()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment