bug mysql_errno prend un link et pas une ressource
authorx2000habouzit <x2000habouzit>
Wed, 4 Feb 2004 22:28:41 +0000 (22:28 +0000)
committerx2000habouzit <x2000habouzit>
Wed, 4 Feb 2004 22:28:41 +0000 (22:28 +0000)
include/xorg.page.inc.php

index 814c9bb..d05967b 100644 (file)
@@ -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();