Skip to content

Commit deb4682

Browse files
syky01dg
authored andcommitted
SqlBuilder: sort all tables in parseJoinConditions (#181) (#182)
1 parent 872642c commit deb4682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Database/Table/SqlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ protected function parseJoinConditions(&$joins, $joinConditions): array
540540
}
541541
$this->parameters['joinConditionSorted'] = [];
542542
if (count($joinConditions)) {
543-
while (reset($tableJoins)) {
543+
while ($tableJoins) {
544544
$this->getSortedJoins(key($tableJoins), $leftJoinDependency, $tableJoins, $joins);
545545
}
546546
}

0 commit comments

Comments
 (0)