From ffb006a83f3367ab475a13c256d3bf902ca09d98 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 6 Oct 2004 13:00:15 +0000 Subject: [PATCH] Modif ecriture de requete SQL juste pour le style --- htdocs/compta/facture.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 3485665a818..b925e37c969 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1201,7 +1201,10 @@ else */ $sql = "SELECT id, ".$db->pdate("a.datea")." as da, a.note, code "; $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."user as u "; - $sql .= " WHERE a.fk_user_author = u.rowid and a.fk_soc = $fac->socidp AND a.fk_action in (9,10) AND a.fk_facture = $fac->id"; + $sql .= " WHERE a.fk_user_author = u.rowid "; + $sql .= " AND a.fk_action in (9,10) "; + $sql .= " AND a.fk_soc = ".$fac->socidp ; + $sql .= " AND a.fk_facture = ".$fac->id; $result = $db->query($sql); if ($result)