diff --git a/src/app/code/community/Dh/EmptyHandles/Model/Handler/Catalogsearch/Result/Index.php b/src/app/code/community/Dh/EmptyHandles/Model/Handler/Catalogsearch/Result/Index.php index 6cb9f71..430ad93 100755 --- a/src/app/code/community/Dh/EmptyHandles/Model/Handler/Catalogsearch/Result/Index.php +++ b/src/app/code/community/Dh/EmptyHandles/Model/Handler/Catalogsearch/Result/Index.php @@ -19,7 +19,8 @@ class Dh_EmptyHandles_Model_Handler_Catalogsearch_Result_Index */ public function execute(Varien_Event $event) { - $numResults = (bool)Mage::helper('catalogsearch')->getQuery()->getNumResults(); + $helper = Mage::helper('catalogsearch'); + $numResults = (bool)$helper->getEngine()->getResultCollection()->addSearchFilter($helper->getQuery()->getQueryText())->getSize(); if (! $numResults) { $this->_addHandle('catalogsearch_result_index_empty'); }