1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Fix title and links on invalid table pages

This commit is contained in:
Jakub Vrana
2013-06-24 05:53:23 -07:00
parent 81e134f872
commit 2e4a7121a9
5 changed files with 14 additions and 3 deletions

View File

@@ -707,6 +707,16 @@ function hidden_fields_get() {
echo '<input type="hidden" name="username" value="' . h($_GET["username"]) . '">';
}
/** Get status of a single table and fall back to name on error
* @param string
* @param bool
* @return array
*/
function table_status1($table, $fast = false) {
$return = table_status($table, $fast);
return ($return ? $return : array("Name" => $table));
}
/** Find out foreign keys for each column
* @param string
* @return array array($col => array())