Get table names of backward keys only once

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@870 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-07-21 21:10:19 +00:00
parent 19a2f66545
commit 336f521f52

View file

@ -301,6 +301,10 @@ if (!$columns) {
}
$result->free();
}
$table_names = array_keys($backward_keys);
if ($table_names) {
$table_names = array_combine($table_names, array_map('adminer_table_name', array_map('table_status', $table_names)));
}
echo "<table cellspacing='0' class='nowrap'>\n";
echo "<thead><tr><td><input type='checkbox' id='all-page' onclick='form_check(this, /check/);'>";
@ -362,7 +366,7 @@ if (!$columns) {
echo where_link($i, $column, $rows[$n][$val]);
$i++;
}
echo '">' . adminer_table_name(table_status($table)) . '</a>';
echo "\">$table_names[$table]</a>";
}
}
}