mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix the paging on the domains page
This commit is contained in:
@@ -132,6 +132,12 @@ else {
|
||||
|
||||
//prepare to page the results
|
||||
$sql = "select count(*) as num_rows from v_domains ";
|
||||
if (strlen($search) > 0) {
|
||||
$sql .= "where (";
|
||||
$sql .= " domain_name like '%".$search."%' ";
|
||||
$sql .= " or domain_description like '%".$search."%' ";
|
||||
$sql .= ") ";
|
||||
}
|
||||
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
|
||||
Reference in New Issue
Block a user