correction bug table_exists
[mtweb] / web / app / data / impl / mw_mysql.php
index da86798..0cff0c2 100644 (file)
@@ -38,9 +38,8 @@
       return $this->query("USE ".$db_name);\r
     }
 
-    function table_exists($base, $table){\r
+    function table_exists($table){\r
       if(!$this->link) $this->connect($this->host, $this->base, $this->user, $this->password);\r
-      $this->select_db($base);\r
       $rst = $this->query("SHOW TABLES");\r
       while($v_rst = mysql_fetch_array($rst)){\r
         if(strcmp($v_rst[0], $table) == 0) return true;\r