From 64abfd64dc8d981d9229b74d55b85ab412bb3637 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 4 Feb 2004 22:28:41 +0000 Subject: [PATCH] bug mysql_errno prend un link et pas une ressource --- include/xorg.page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xorg.page.inc.php b/include/xorg.page.inc.php index 814c9bb..d05967b 100644 --- a/include/xorg.page.inc.php +++ b/include/xorg.page.inc.php @@ -59,7 +59,7 @@ class XorgPage extends DiogenesCorePage { function mysql_assign($sql_query,$var_name,$var_nb_name='') { $sql = mysql_query($sql_query); - if(mysql_errno($sql)) + if(mysql_errno()) return(mysql_error($sql)); $array = Array(); -- 2.1.4