From 8ea00f8f3bbccc102b38f8ec67d11236f18eb700 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Mon, 1 Oct 2012 15:19:22 +0000 Subject: [PATCH] // Fix #PSCFV-4467 --- modules/mailalerts/mailalerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mailalerts/mailalerts.php b/modules/mailalerts/mailalerts.php index 6a64849cb..fabd99df3 100644 --- a/modules/mailalerts/mailalerts.php +++ b/modules/mailalerts/mailalerts.php @@ -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;