From bf535c0dec208aa102de26e553837f3dea30cf5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 19 Nov 2020 21:12:16 +0100 Subject: [PATCH] remove warnings --- htdocs/product/price.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 9c9fa653a60..1dac893807f 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -11,7 +11,7 @@ * Copyright (C) 2015 Alexandre Spangaro * Copyright (C) 2015 Marcos García * Copyright (C) 2016 Ferran Marcet - * Copyright (C) 2018 Frédéric France + * Copyright (C) 2018-2020 Frédéric France * Copyright (C) 2018 Nicolas ZABOURI * * This program is free software; you can redistribute it and/or modify @@ -49,7 +49,9 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) { // Load translation files required by the page $langs->loadLangs(array('products', 'bills', 'companies', 'other')); -$mesg = ''; $error = 0; $errors = array(); +$mesg = ''; +$error = 0; +$errors = array(); $id = GETPOST('id', 'int'); $ref = GETPOST('ref', 'alpha'); @@ -474,8 +476,7 @@ if (empty($reshook)) } } - if ($action == 'delete_all_price_by_qty') - { + if ($action == 'delete_all_price_by_qty') { $priceid = GETPOST('priceid', 'int'); if (!empty($rowid)) { $sql = "DELETE FROM ".MAIN_DB_PREFIX."product_price_by_qty"; @@ -483,7 +484,7 @@ if (empty($reshook)) $result = $db->query($sql); } else { - setEventMessages(('delete_price_by_qty'.$langs->transnoentities(MissingIds)), null, 'errors'); + setEventMessages(('delete_price_by_qty'.$langs->transnoentities('MissingIds')), null, 'errors'); } }