diff --git a/app/code/community/Strategery/Infinitescroll/Block/Init.php b/app/code/community/Strategery/Infinitescroll/Block/Init.php index 4d21e09..e81e10d 100644 --- a/app/code/community/Strategery/Infinitescroll/Block/Init.php +++ b/app/code/community/Strategery/Infinitescroll/Block/Init.php @@ -50,7 +50,8 @@ public function getLoaderImage() public function getProductListMode() { // user mode - if ($currentMode = $this->getRequest()->getParam('mode')) { + $currentMode = $this->getRequest()->getParam('mode') ? $this->getRequest()->getParam('mode') : Mage::getSingleton('catalog/session')->getDisplayMode(); + if ($currentMode) { switch($currentMode){ case 'grid': $productListMode = 'grid';