Skip to content

Commit c8114e6

Browse files
authored
fix orlike
1 parent 9382d23 commit c8114e6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/TablesIgniter.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ private function getOutputData($row){
141141
*/
142142
private function extraConfig($bui){
143143
if(!empty($_POST["search"]["value"])){
144-
foreach ($this->searchLike as $field) {
145-
$bui->orLike($field,$_POST["search"]["value"]);
144+
foreach ($this->searchLike as $key => $field) {
145+
if($key == 0){
146+
$bui->like($field,$_POST["search"]["value"]);
147+
}else{
148+
$bui->orLike($field,$_POST["search"]["value"]);
149+
}
146150
}
147151
}
148152
if(isset($_POST["order"])){

0 commit comments

Comments
 (0)