File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/core/Mage/Tax/Model/Resource Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -224,13 +224,17 @@ protected function _createSearchPostCodeTemplates($postcode)
224224 * Returns tax rates for request - either pereforms SELECT from DB, or returns already cached result
225225 * Notice that productClassId due to optimization can be array of ids
226226 *
227- * @param Varien_Object $request
227+ * @param null| Varien_Object $request
228228 * @throws Zend_Db_Select_Exception
229229 * @throws Mage_Core_Exception
230230 * @return array
231231 */
232232 protected function _getRates ($ request )
233233 {
234+ if (!$ request instanceof Varien_Object) {
235+ return [];
236+ }
237+
234238 // Extract params that influence our SELECT statement and use them to create cache key
235239 $ storeId = Mage::app ()->getStore ($ request ->getStore ())->getId ();
236240 $ customerClassId = $ request ->getCustomerClassId ();
You can’t perform that action at this time.
0 commit comments