mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 00:28:34 +02:00
Optimize table_status()
This commit is contained in:
@@ -39,12 +39,7 @@ if ($_POST) {
|
||||
|
||||
$source = array_keys(fields($TABLE)); //! no text and blob
|
||||
$target = ($TABLE === $row["table"] ? $source : array_keys(fields($row["table"])));
|
||||
$referencable = array();
|
||||
foreach (table_status() as $name => $table_status) {
|
||||
if (fk_support($table_status)) {
|
||||
$referencable[] = $name;
|
||||
}
|
||||
}
|
||||
$referencable = array_keys(array_filter(table_status('', true), 'fk_support'));
|
||||
?>
|
||||
|
||||
<form action="" method="post">
|
||||
|
Reference in New Issue
Block a user