mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
dont use order by when only requestion count(*)
This commit is contained in:
@@ -269,7 +269,7 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add"
|
||||
|
||||
//prepare to page the results
|
||||
$sql = "select count(*) as num_rows from v_default_settings ";
|
||||
if (strlen($order_by) > 0) { $sql .= "order by $order_by $order "; }
|
||||
// if (strlen($order_by) > 0) { $sql .= "order by $order_by $order "; }
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
@@ -459,4 +459,4 @@ if (permission_exists("domain_select") && permission_exists("domain_setting_add"
|
||||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user