From 65f789968da9d516ca2b3d35cf36e498c6f8bd19 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Tue, 6 Jun 2006 13:06:50 +0000 Subject: [PATCH] bug de frappe comme on dit ... --- ecrire/base/db_mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/base/db_mysql.php b/ecrire/base/db_mysql.php index c9d92297fb..a17745fead 100644 --- a/ecrire/base/db_mysql.php +++ b/ecrire/base/db_mysql.php @@ -193,7 +193,7 @@ function spip_connect_db($host, $port, $login, $pass, $db) { function spip_mysql_showtable($nom_table) { $a = spip_query("SHOW TABLES LIKE '$nom_table'"); - if (!a) return ""; + if (!$a) return ""; if (!spip_fetch_array($a)) return ""; list(,$a) = spip_fetch_array(spip_query("SHOW CREATE TABLE $nom_table")); if (!preg_match("/^[^(),]*\((([^()]*\([^()]*\)[^()]*)*)\)[^()]*$/", $a, $r)) -- GitLab