Skip to content

Commit 0579212

Browse files
authored
Update SearchController.php
1 parent ae4660e commit 0579212

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SearchController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ private function buildSQL(){
192192
if(!empty($this->paramTags)){
193193
if(is_array($this->searchQuery)) {
194194
foreach($this->searchQuery as $tag){
195-
$sql .= "FIND_IN_SET('{$tag}',{$this->paramTags}) {$this->queryEnd} "; //OR
195+
$sql .= "FIND_IN_SET('{$tag}',{$this->paramTags}) {$this->queryEnd} ";
196196
}
197-
$sql = rtrim($sql , " {$this->queryEnd} "); //OR
197+
$sql = rtrim($sql , " {$this->queryEnd} ");
198198
}else{
199199
$sql .= "FIND_IN_SET('{$this->searchQuery}',{$this->paramTags})";
200200
}
@@ -204,7 +204,7 @@ private function buildSQL(){
204204
for ($i = 0; $i < $arrayCount; $i++) {
205205
$sql .= $this->buildArrayQuery($i);
206206
if ($i != $arrayCount - 1) {
207-
$sql .= " {$this->queryEnd} "; //OR
207+
$sql .= " {$this->queryEnd} ";
208208
}
209209
}
210210
} else {

0 commit comments

Comments
 (0)