This commit is contained in:
2021-03-26 15:10:50 +08:00
parent f023804b28
commit 540d42f09b
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ trait QueryTrait
if (!is_string($condition2)) {
$condition2 = $this->conditionToString($condition2);
}
$this->where[] = 'IF(' . $condition . ',' . $condition1 . ',' . $condition2 . ')';
$this->where[] = 'IF(' . $condition . ', ' . $condition1 . ', ' . $condition2 . ')';
return $this;
}