Commit 08e4f038 authored by Steven Jones's avatar Steven Jones

Issue #782440 by Ken Wolf: Hosting_task() module function...

Issue #782440 by Ken Wolf: Hosting_task() module function hosting_task_fetch_tasks() can be made more efficient.
parent f544c0d0
......@@ -1103,7 +1103,7 @@ function _hosting_task_list($filter_by, $filter_value, $count = 5, $element = 0,
function hosting_task_fetch_tasks($rid) {
$node = node_load($rid);
$result = db_query("SELECT n.nid, t.task_type, t.task_status FROM {node} n LEFT JOIN {hosting_task} t ON n.vid=t.vid
$result = db_query("SELECT n.nid, t.task_type, t.task_status FROM {node} n INNER JOIN {hosting_task} t ON n.vid = t.vid
WHERE n.type = 'task' AND t.rid = %d
ORDER BY t.task_status ASC, n.changed DESC", $rid);
......
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