We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a7200 commit 090e217Copy full SHA for 090e217
lib/Varien/Data/Collection/Db.php
@@ -241,7 +241,7 @@ public function getSelectCountSql()
241
$countSelect->columns('COUNT(*)');
242
243
// Simple optimization - remove all joins if there are no where clauses using joined tables and all joins are left joins
244
- $leftJoins = array_filter($countSelect->getPart(Zend_Db_Select::FROM), function($table) {
+ $leftJoins = array_filter($countSelect->getPart(Zend_Db_Select::FROM), function ($table) {
245
return ($table['joinType'] == Zend_Db_Select::LEFT_JOIN || $table['joinType'] == Zend_Db_Select::FROM);
246
});
247
if (count($leftJoins) == count($countSelect->getPart(Zend_Db_Select::FROM))) {
0 commit comments