Skip to content

Commit f9e8f8c

Browse files
committed
fix cs
1 parent d01c4df commit f9e8f8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/elements/db/VariantQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ protected function beforePrepare(): bool
488488
// Forcing the use of the `sortOrder` index if no custom `orderBy` is set
489489
if ($sortOrderIndex !== null && empty($this->orderBy)) {
490490
$elementOwnersTable = Craft::$app->getDb()->schema->getRawTableName(\craft\db\Table::ELEMENTS_OWNERS);
491-
$this->subQuery->innerJoin([new Expression('[['.$elementOwnersTable.']] AS elements_owners USE INDEX (' . $sortOrderIndex . ')')], $ownersCondition);
491+
$this->subQuery->innerJoin([new Expression('[[' . $elementOwnersTable . ']] AS elements_owners USE INDEX (' . $sortOrderIndex . ')')], $ownersCondition);
492492
} else {
493493
$this->subQuery->innerJoin(['elements_owners' => CraftTable::ELEMENTS_OWNERS], $ownersCondition);
494494
}

0 commit comments

Comments
 (0)