From fd03f582c97c728ee5cc1d5e382fe0214be22535 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Sun, 31 Aug 2014 12:38:33 +0200 Subject: [PATCH] Fix SQL syntax --- htdocs/admin/limits.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/limits.php b/htdocs/admin/limits.php index 69237fe4f74..9c0bc80a25a 100644 --- a/htdocs/admin/limits.php +++ b/htdocs/admin/limits.php @@ -206,9 +206,9 @@ else // Add vat rates examples specific to country $vat_rates=array(); - $sql.="SELECT taux as vat_rate"; + $sql="SELECT taux as vat_rate"; $sql.=" FROM ".MAIN_DB_PREFIX."c_tva as t, ".MAIN_DB_PREFIX."c_pays as p"; - $sql.=" WHERE t.active=1 AND t.fk_pays = p.rowid AND p.code='".$mysoc->country_code."' AND taux != 0"; + $sql.=" WHERE t.active=1 AND t.fk_pays = p.rowid AND p.code='".$mysoc->country_code."' AND taux <> 0"; $sql.=" ORDER BY t.taux ASC"; $resql=$db->query($sql); if ($resql)