We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14777f1 commit 7eebd40Copy full SHA for 7eebd40
src/Statement.php
@@ -479,11 +479,11 @@ public function validateClauseOrder($parser, $list)
479
480
// Handle ordering of Multiple Joins in a query
481
if ($clauseStartIdx != -1) {
482
- if ($joinStart == 0 && stripos($clauseType, 'JOIN')) {
+ if ($joinStart == 0 && stripos($clauseType, 'JOIN') !== false) {
483
$joinStart = 1;
484
- } elseif ($joinStart == 1 && ! stripos($clauseType, 'JOIN')) {
+ } elseif ($joinStart == 1 && stripos($clauseType, 'JOIN') === false) {
485
$joinStart = 2;
486
- } elseif ($joinStart == 2 && stripos($clauseType, 'JOIN')) {
+ } elseif ($joinStart == 2 && stripos($clauseType, 'JOIN') !== false) {
487
$error = 1;
488
}
489
0 commit comments