/** * Adds store filter into array * * @param mixed $storeId * @return Mage_Review_Model_Resource_Review_Product_Collection */ public function addStoreFilter($storeId = null) { if (is_null($storeId)) { $storeId = $this->getStoreId(); } parent::addStoreFilter($storeId); if (!is_array($storeId)) { $storeId = array($storeId); } if (!empty($this->_storesIds)) { $this->_storesIds = array_intersect($this->_storesIds, $storeId); } else { $this->_storesIds = $storeId; } return $this; }