diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Statement.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Statement.php b/src/Statement.php index e3e5968..b7c4da0 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -479,11 +479,11 @@ abstract class Statement // Handle ordering of Multiple Joins in a query if ($clauseStartIdx != -1) { - if ($joinStart == 0 && stripos($clauseType, 'JOIN')) { + if ($joinStart == 0 && stripos($clauseType, 'JOIN') !== false) { $joinStart = 1; - } elseif ($joinStart == 1 && ! stripos($clauseType, 'JOIN')) { + } elseif ($joinStart == 1 && stripos($clauseType, 'JOIN') === false) { $joinStart = 2; - } elseif ($joinStart == 2 && stripos($clauseType, 'JOIN')) { + } elseif ($joinStart == 2 && stripos($clauseType, 'JOIN') !== false) { $error = 1; } } |