* ProjectManager - Filter elements by app

This commit is contained in:
Nathan Gray 2012-03-06 15:23:34 +00:00
parent 940ab1ce92
commit 8af34bfef8

View File

@ -962,7 +962,7 @@ class so_sql
$num_rows = 0; // as spec. in max_matches in the user-prefs
if (is_array($start)) list($start,$num_rows) = $start;
if ($order_by && stripos($order_by,'ORDER BY')===false && stripos($order_by,'GROUP BY')===false)
if ($order_by && stripos($order_by,'ORDER BY')===false && stripos($order_by,'GROUP BY')===false && stripos($order_by,'HAVING')===false)
{
$order_by = 'ORDER BY '.$order_by;
}