mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Always return array from table_status()
This commit is contained in:
@@ -391,11 +391,8 @@ if (isset($_GET["mongo"])) {
|
||||
|
||||
function table_status($name = "", $fast = false) {
|
||||
$return = array();
|
||||
foreach (tables_list() as $table => $type) {
|
||||
$return[$table] = array("Name" => $table);
|
||||
if ($name == $table) {
|
||||
return $return[$table];
|
||||
}
|
||||
foreach (($name != "" ? array($name => 1) : tables_list()) as $table => $type) {
|
||||
$return[$table] = array("Name" => $table, "Engine" => "");
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user