Skip to content

Commit e45ab00

Browse files
committed
Minor change
1 parent a3b52ed commit e45ab00

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Mouf/Database/MagicQuery.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,9 @@ private function magicJoin(NodeInterface $select) {
120120
$nodeTraverser->walk($select);
121121

122122
$magicJoinSelects = $magicJoinDetector->getMagicJoinSelects();
123-
if ($magicJoinSelects) {
124-
foreach ($magicJoinSelects as $magicJoinSelect) {
125-
// For each select in the query (there can be nested selects!), let's find the list of tables.
126-
$this->magicJoinOnOneQuery($magicJoinSelect);
127-
}
123+
foreach ($magicJoinSelects as $magicJoinSelect) {
124+
// For each select in the query (there can be nested selects!), let's find the list of tables.
125+
$this->magicJoinOnOneQuery($magicJoinSelect);
128126
}
129127
}
130128

0 commit comments

Comments
 (0)