From 281c96e95451269f2614684b8de5be25862c8374 Mon Sep 17 00:00:00 2001 From: dj3c1t Date: Sun, 9 Dec 2012 14:25:48 +0100 Subject: [PATCH] correction bug table_exists --- readme.txt | 10 +++++++++- web/app/data/impl/mw_mysql.php | 3 +-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 8589511..3def8e0 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,5 @@ - mtweb 0.5.0 + mtweb 0.5.1 copyright dj3c1t 2012 programme en GNU/GPLv3 @@ -61,6 +61,14 @@ http://mtweb.dj3c1t.com historique des modifications : ------------------------------ +0.5.1 : +------- + +9 Dec 2012 + +correction bug table_exists + + 0.5.0 : ------- diff --git a/web/app/data/impl/mw_mysql.php b/web/app/data/impl/mw_mysql.php index da86798..0cff0c2 100644 --- a/web/app/data/impl/mw_mysql.php +++ b/web/app/data/impl/mw_mysql.php @@ -38,9 +38,8 @@ return $this->query("USE ".$db_name); } - function table_exists($base, $table){ + function table_exists($table){ if(!$this->link) $this->connect($this->host, $this->base, $this->user, $this->password); - $this->select_db($base); $rst = $this->query("SHOW TABLES"); while($v_rst = mysql_fetch_array($rst)){ if(strcmp($v_rst[0], $table) == 0) return true; -- 2.1.4