[-] MO : Fix warning on nbProducts
This commit is contained in:
1 parent
74ba37a7bc
commit
50285b1e0e
1 file changed
+1
-1
@@ -105,7 +105,7 @@ class CarrierCompare extends Module
|
||||
if (!$this->isModuleAvailable())
|
||||
return;
|
||||
|
||||
if (!isset($this->context->cart) || !$this->context->cart->nbProducts)
|
||||
if (!isset($this->context->cart) || $this->context->cart->getProducts() == 0)
|
||||
return;
|
||||
|
||||
$protocol = (Configuration::get('PS_SSL_ENABLED') || (!empty($_SERVER['HTTPS'])
|
||||
|
||||
Reference in new issue
Block a user