// Fix #PSCFV-4467

This commit is contained in:
rGaillard
2012-10-01 15:19:22 +00:00
parent 78d41273ec
commit 8ea00f8f3b
+1 -1
View File
@@ -403,7 +403,7 @@ class MailAlerts extends Module
public function hookActionProductOutOfStock($params)
{
if (!$this->_customer_qty)
if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT'))
return;
$id_product = (int)$params['product']->id;