Commit d675c01f authored by Dries's avatar Dries

- Patch #147880 by hswong3i: improved copmatibility of SQL query.

parent 8a4451e3
...@@ -1594,7 +1594,7 @@ function node_admin_content() { ...@@ -1594,7 +1594,7 @@ function node_admin_content() {
function node_admin_nodes() { function node_admin_nodes() {
$filter = node_build_filter_query(); $filter = node_build_filter_query();
$result = pager_query('SELECT n.*, u.name, u.uid FROM {node} n '. $filter['join'] .' INNER JOIN {users} u ON n.uid = u.uid '. $filter['where'] .' ORDER BY n.changed DESC', 50, 0, NULL, $filter['args']); $result = pager_query('SELECT n.*, u.name FROM {node} n '. $filter['join'] .' INNER JOIN {users} u ON n.uid = u.uid '. $filter['where'] .' ORDER BY n.changed DESC', 50, 0, NULL, $filter['args']);
// Enable language column if locale is enabled or if we have any node with language // Enable language column if locale is enabled or if we have any node with language
$count = db_result(db_query("SELECT COUNT(*) FROM {node} n WHERE language != ''")); $count = db_result(db_query("SELECT COUNT(*) FROM {node} n WHERE language != ''"));
......
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