From 83f00e9a8dcb52b0aed6c504b4e9e8d195a94049 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 18 Jul 2005 22:32:26 +0000 Subject: [PATCH] Fix: Lien invalide. --- htdocs/contact/fiche.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 2ef0a2ed9f1..667aa266165 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -445,21 +445,22 @@ else } $sql .= " ORDER BY a.datea DESC, a.id DESC"; - if ( $db->query($sql) ) + $resql=$db->query($sql); + if ($resql) { $i = 0 ; - $num = $db->num_rows(); + $num = $db->num_rows($resql); $var=true; while ($i < $num) { - $obj = $db->fetch_object(); + $obj = $db->fetch_object($resql); $var=!$var; print ""; - print "". strftime("%d %b %Y %H:%M", $obj->da) .""; + print "". strftime("%d %b %Y %H:%M", $obj->da) .""; if ($obj->propalrowid) { - print "propalrowid\">$obj->libelle"; + print "propalrowid."\">".$obj->libelle.""; } else {