summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils/Query.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils/Query.php b/src/Utils/Query.php
index 2e623aa..9494d96 100644
--- a/src/Utils/Query.php
+++ b/src/Utils/Query.php
@@ -591,7 +591,7 @@ class Query
*
* @var int
*/
- $clauseIdx = $clauses[$clauseType];
+ $clauseIdx = isset($clauses[$clauseType]) ? $clauses[$clauseType] : -1;
$firstClauseIdx = $clauseIdx;
$lastClauseIdx = $clauseIdx;