Skip to content

Commit c6afdeb

Browse files
committed
fix
1 parent 9abed0d commit c6afdeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/core/Mage/Tax/Model/Resource/Calculation.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)