diff --git a/ecrire/base/db_mysql.php b/ecrire/base/db_mysql.php
index ae478859df67ea7be18d31ac1f755c3c4af44431..d0b3cf879e3472e0a054261a935ffb861dd53bc1 100644
--- a/ecrire/base/db_mysql.php
+++ b/ecrire/base/db_mysql.php
@@ -189,6 +189,10 @@ function spip_connect_db($host, $port, $login, $pass, $db) {
 
 function spip_mysql_showtable($nom_table)
 {
+	if ($GLOBALS['table_prefix']) $table_pref = $GLOBALS['table_prefix']."_";
+	else $table_pref = "";
+	$nom_table = preg_replace('/^spip_/', $table_pref, $nom_table);
+	
 	$a = spip_query("SHOW TABLES LIKE '$nom_table'");
 	if (!a) return "";
 	if (!spip_fetch_array($a)) return "";