From fb3640a7cbf3960370e942849bf592c5d6b1d777 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 10 Sep 2005 20:44:10 +0000 Subject: [PATCH] Qual: Meilleur gestion erreur si fonctions mysql non dispo sur le php --- htdocs/lib/mysql.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/mysql.lib.php b/htdocs/lib/mysql.lib.php index 70cd60fce23..ad547265c2d 100644 --- a/htdocs/lib/mysql.lib.php +++ b/htdocs/lib/mysql.lib.php @@ -171,7 +171,7 @@ class DoliDb */ function connect($host, $login, $passwd, $name) { - $this->db = mysql_connect($host, $login, $passwd); + $this->db = @mysql_connect($host, $login, $passwd); //print "Resultat fonction connect: ".$this->db; return $this->db; }