Remove order by on the select count for ring_groups.php as its not needed.

This commit is contained in:
Mark Crane
2015-01-29 07:14:57 +00:00
parent 30706fa11d
commit 5788b11402

View File

@@ -68,12 +68,6 @@ require_once "resources/paging.php";
//prepare to page the results
$sql = "select count(*) as num_rows from v_ring_groups ";
$sql .= "where domain_uuid = '$domain_uuid' ";
if (strlen($order_by) == 0) {
$sql .= "order by ring_group_name, ring_group_extension asc ";
}
else {
$sql .= "order by $order_by $order ";
}
$prep_statement = $db->prepare($sql);
if ($prep_statement) {
$prep_statement->execute();