Skip to content

Commit

Permalink
fix marge
Browse files Browse the repository at this point in the history
  • Loading branch information
osben committed Sep 12, 2016
1 parent 631b56c commit a37dc10
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/Coupons.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,6 @@ public function count_coupons($filter = array())
$valid_filter = $this->db->placehold('AND ((DATE(NOW()) <= DATE(c.expire) OR c.expire IS NULL) AND (c.usages=0 OR NOT c.single))');
}

if (isset($filter['keyword'])) {
$keywords = explode(' ', $filter['keyword']);
foreach ($keywords as $keyword) {
$keyword_filter .= $this->db->placehold('AND (b.name LIKE "%'.$this->db->escape(trim($keyword)).'%" OR b.meta_keywords LIKE "%'.$this->db->escape(trim($keyword)).'%") ');
}
}

$query = $this->db->placehold("SELECT COUNT(distinct c.id) as count
FROM __coupons c
WHERE 1
Expand Down

0 comments on commit a37dc10

Please sign in to comment.