[-] MO : Fix warning on nbProducts

This commit is contained in:
Gregory Roussac
2013-01-28 16:08:56 +01:00
parent 74ba37a7bc
commit 50285b1e0e
+1 -1
View File
@@ -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'])