Skip to content

Commit

Permalink
PHPCS fix relative to #2210
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed May 19, 2023
1 parent 63a7200 commit 090e217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Varien/Data/Collection/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function getSelectCountSql()
$countSelect->columns('COUNT(*)');

// Simple optimization - remove all joins if there are no where clauses using joined tables and all joins are left joins
$leftJoins = array_filter($countSelect->getPart(Zend_Db_Select::FROM), function($table) {
$leftJoins = array_filter($countSelect->getPart(Zend_Db_Select::FROM), function ($table) {
return ($table['joinType'] == Zend_Db_Select::LEFT_JOIN || $table['joinType'] == Zend_Db_Select::FROM);
});
if (count($leftJoins) == count($countSelect->getPart(Zend_Db_Select::FROM))) {
Expand Down

0 comments on commit 090e217

Please sign in to comment.