Permalink
Browse files

// without the parens, this code doesn't do what you think it does...…

… crash on 1.6.0.9
  • Loading branch information...
djfm committed Oct 6, 2014
1 parent b0da3bd commit ba52cb7925fc079ff31dd56320df56a4fe539396
Showing with 2 additions and 2 deletions.
  1. +2 −2 eu_legal/override/classes/Carrier.php
@@ -23,8 +23,8 @@ public function getTaxesRate(Address $address)
* Only if Cart exists and at least one product in cart, otherwise the alternative method could not be applied
*/
if (Configuration::get('LEGAL_SHIPTAXMETH') &&
$cart = Context::getContext()->cart &&
$products = $cart->getProducts() &&
($cart = Context::getContext()->cart) &&
($products = $cart->getProducts()) &&
!empty($products))
return Cart::getTaxesAverageUsed($cart->id);

0 comments on commit ba52cb7

Please sign in to comment.