From 230334133249cb3ae2b624c3fb5478e5e6d52e92 Mon Sep 17 00:00:00 2001 From: Lorenz Meyer Date: Fri, 4 Nov 2022 10:32:46 +0100 Subject: [PATCH] fix indents --- MailAlert.php | 2 +- upgrade/upgrade-2.3.4.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/MailAlert.php b/MailAlert.php index 22ca661..93ffe63 100644 --- a/MailAlert.php +++ b/MailAlert.php @@ -95,7 +95,7 @@ public static function deleteAlert($id_customer, $customer_email, $id_product, $ $sql = ' UPDATE `' . _DB_PREFIX_ . self::$definition['table'] . '` set `deleted` = 1 ' . ($notification_sent ? ', `notification_sent` = NOW()' : '') . - ' WHERE ' . (($id_customer > 0) ? '(`customer_email` = \'' . pSQL($customer_email) . '\' OR `id_customer` = ' . (int) $id_customer . ')' : + ' WHERE ' . (($id_customer > 0) ? '(`customer_email` = \'' . pSQL($customer_email) . '\' OR `id_customer` = ' . (int) $id_customer . ')' : '`customer_email` = \'' . pSQL($customer_email) . '\'') . ' AND `id_product` = ' . (int) $id_product . ' AND `id_product_attribute` = ' . (int) $id_product_attribute . ' diff --git a/upgrade/upgrade-2.3.4.php b/upgrade/upgrade-2.3.4.php index 4adf1ae..b581a8e 100755 --- a/upgrade/upgrade-2.3.4.php +++ b/upgrade/upgrade-2.3.4.php @@ -23,7 +23,6 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA */ - function upgrade_module_2_3_4() { $result = true;