Compare commits
2 Commits
946a0b0b5e
...
acce5b2b17
Author | SHA1 | Date | |
---|---|---|---|
acce5b2b17 | |||
fc372b56c1 |
@ -111,8 +111,8 @@ abstract class Select extends Query implements SelectInterface
|
|||||||
$str []= $join;
|
$str []= $join;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!str_contains('and ', strtolower($join)) and !str_contains('or ', strtolower($join))) {
|
if (!str_contains(strtolower($join), 'join')) {
|
||||||
$str []= "AND {$join}";
|
$str []= "JOIN {$join}";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$str []= $join;
|
$str []= $join;
|
||||||
@ -144,7 +144,7 @@ abstract class Select extends Query implements SelectInterface
|
|||||||
$str []= $condition;
|
$str []= $condition;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!str_contains('and ', strtolower($condition)) and !str_contains('or ', strtolower($condition))) {
|
if (!str_contains(strtolower($condition), 'and') and !str_contains(strtolower($condition), 'or')) {
|
||||||
$str []= "AND {$condition}";
|
$str []= "AND {$condition}";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user