small fix to "PMA_DBI_get_tables_full() first parameter now also accepts an array of database names not only a single name"
This commit is contained in:
@@ -240,7 +240,7 @@ function PMA_DBI_get_tables_full($database, $table = false,
|
||||
if ( ! is_array($database) ) {
|
||||
$databases = array(addslashes($database));
|
||||
} else {
|
||||
$databases =& array_map($database, 'addslashes');
|
||||
$databases = array_map('addslashes', $database);
|
||||
}
|
||||
|
||||
if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
|
||||
@@ -286,7 +286,6 @@ function PMA_DBI_get_tables_full($database, $table = false,
|
||||
FROM `information_schema`.`TABLES`
|
||||
WHERE `TABLE_SCHEMA` IN (\'' . implode("', '", $databases) . '\')
|
||||
' . $sql_where_table;
|
||||
|
||||
$tables = PMA_DBI_fetch_result($sql, array('TABLE_SCHEMA','TABLE_NAME'),
|
||||
null, $link);
|
||||
unset( $sql_where_table, $sql );
|
||||
|
Reference in New Issue
Block a user