Skip to content

Commit f14d9a8

Browse files
committed
Fix #249 - Notice - Undefined index: ORDER BY
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 38afaea commit f14d9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public static function getClause($statement, $list, $clause, $type = 0, $skipFir
591591
*
592592
* @var int
593593
*/
594-
$clauseIdx = $clauses[$clauseType];
594+
$clauseIdx = isset($clauses[$clauseType]) ? $clauses[$clauseType] : -1;
595595

596596
$firstClauseIdx = $clauseIdx;
597597
$lastClauseIdx = $clauseIdx;

0 commit comments

Comments
 (0)