mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Fixes #1220 - corrupted database table list when using 'e_' prefix.
This commit is contained in:
@@ -1960,11 +1960,13 @@ class e_db_mysql
|
||||
if(!$this->mySQLtableList)
|
||||
{
|
||||
$table = array();
|
||||
|
||||
if($res = $this->db_Query("SHOW TABLES LIKE '".$this->mySQLPrefix."%' "))
|
||||
{
|
||||
$length = strlen($this->mySQLPrefix);
|
||||
while($rows = $this->fetch(MYSQL_NUM))
|
||||
{
|
||||
$table[] = str_replace($this->mySQLPrefix,"",$rows[0]);
|
||||
$table[] = substr($rows[0],$length);
|
||||
}
|
||||
}
|
||||
return $table;
|
||||
|
Reference in New Issue
Block a user