diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php
index 03f40c58000..0f67977c7dd 100644
--- a/htdocs/comm/remx.php
+++ b/htdocs/comm/remx.php
@@ -148,6 +148,7 @@ if ($_socid > 0)
print '
';
+ $remise_all=$remise_user=0;
$sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc, rc.fk_user";
$sql .= " FROM ".MAIN_DB_PREFIX."societe_remise_except as rc";
$sql .= " WHERE rc.fk_soc =". $objsoc->id;