afa 4 hónapja
szülő
commit
32ac1d274e
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      application/api/controller/Pledge.php

+ 2 - 2
application/api/controller/Pledge.php

@@ -38,11 +38,11 @@ class Pledge extends Api
             $income_reta = $this->request->param('income_reta/d', 0);
             $map = [];
             $order = 'weigh desc,id desc';
-            if(!empty($title)) $map[] = ['title', 'LIKE', '%'.$title.'%'];
+            if(!empty($title)) $map['title'] = [ 'LIKE', '%'.$title.'%'];
             if ($day_num > 0)  $order = 'day_num '.$this->order[$day_num];
             if ($income_reta > 0) $order = 'income_reta '.$this->order[$income_reta];
             if ($day_num > 0 && $income_reta > 0) $order = 'day_num '.$this->order[$day_num].',income_reta '.$this->order[$income_reta];
-            
+
             $list = $productPledges
                   ->where('status', $productPledges::Normal)
                   ->where('to_lang', $this->lan)->where('type_id', $type_id)