Skip to content

Commit

Permalink
Merge pull request #51 from arosiek/master
Browse files Browse the repository at this point in the history
IntegerNet_Solr fix should be applied only for flat categories
  • Loading branch information
avstudnitz authored Sep 7, 2018
2 parents cc1ef92 + bb8f10e commit fbe8215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/code/community/IntegerNet/Solr/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function afterFlatCategoryLoadedUseBackendModel(Varien_Event_Observer $ob
return;
}

if (Mage::helper('catalog/category_flat')->isEnabled() && !$category->getResource() instanceof Mage_Catalog_Model_Resource_Category_Flat) {
if (!Mage::helper('catalog/category_flat')->isEnabled() || !$category->getResource() instanceof Mage_Catalog_Model_Resource_Category_Flat) {
return;
}

Expand Down

0 comments on commit fbe8215

Please sign in to comment.