diff --git a/api/Products.php b/api/Products.php index 55c1aea..b9abae1 100755 --- a/api/Products.php +++ b/api/Products.php @@ -103,7 +103,7 @@ public function get_products($filter = array()) } } - if(!empty($filter['features']) && !empty($filter['features'])) + if(!empty($filter['features'])) foreach($filter['features'] as $feature=>$value) $features_filter .= $this->db->placehold('AND p.id in (SELECT product_id FROM __options WHERE feature_id=? AND value=? ) ', $feature, $value); @@ -547,4 +547,4 @@ public function get_prev_product($id) return $this->get_product((integer)$this->db->result('id')); } -} \ No newline at end of file +}