From: dj3c1t Date: Sun, 9 Dec 2012 13:25:48 +0000 (+0100) Subject: correction bug table_exists X-Git-Tag: mtweb.0.5.1 X-Git-Url: http://git.dj3c1t.com/?p=mtweb;a=commitdiff_plain;h=281c96e95451269f2614684b8de5be25862c8374 correction bug table_exists --- 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;