* ProjectManager - Filter elements by app

This commit is contained in:
Frédéric Erpicum 2012-02-27 20:20:42 +00:00
parent 60b6c516ee
commit afa20726f8

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;
}