projects
/
mtweb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
20760a9
)
correction bug table_exists
mtweb.0.5.1
author
dj3c1t
<dj3c1t@free.fr>
Sun, 9 Dec 2012 13:25:48 +0000
(14:25 +0100)
committer
dj3c1t
<dj3c1t@free.fr>
Sun, 9 Dec 2012 13:25:48 +0000
(14:25 +0100)
readme.txt
patch
|
blob
|
history
web/app/data/impl/mw_mysql.php
patch
|
blob
|
history
diff --git
a/readme.txt
b/readme.txt
index
8589511
..
3def8e0
100644
(file)
--- 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
copyright dj3c1t 2012
programme en GNU/GPLv3
@@
-61,6
+61,14
@@
http://mtweb.dj3c1t.com
historique des modifications :
------------------------------
historique des modifications :
------------------------------
+0.5.1 :
+-------
+
+9 Dec 2012
+
+correction bug table_exists
+
+
0.5.0 :
-------
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
(file)
--- 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);
\r
}
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
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
$rst = $this->query("SHOW TABLES");
\r
while($v_rst = mysql_fetch_array($rst)){
\r
if(strcmp($v_rst[0], $table) == 0) return true;
\r