From 31f2d8922d9b42d80c5e1f73a186f0b0954560af Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Jun 2013 19:34:02 +0200 Subject: [PATCH] Fix: warning --- htdocs/cashdesk/facturation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/cashdesk/facturation.php b/htdocs/cashdesk/facturation.php index e4f23785a97..1636246e536 100644 --- a/htdocs/cashdesk/facturation.php +++ b/htdocs/cashdesk/facturation.php @@ -138,10 +138,10 @@ $sql.= " AND t.active = 1"; $sql.= " AND p.code = '".$mysoc->country_code."'"; //print $request; -$res = $db->query($sql); -if ($res) +$resql = $db->query($sql); +if ($resql) { - while ( $tab = $db->fetch_array($res) ) + while ( $tab = $db->fetch_array($resql) ) { foreach ( $tab as $cle => $valeur ) {