From 453009734cc8709ff8d607c4d7d22f62baa7837e Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 23 Jul 2014 04:30:10 +0000 Subject: [PATCH] Fix the paging on the domains page --- core/domain_settings/domains.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/domain_settings/domains.php b/core/domain_settings/domains.php index 6814a2e2af..60efe6d676 100644 --- a/core/domain_settings/domains.php +++ b/core/domain_settings/domains.php @@ -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) {