Hide schema link in homepage with no schema

This commit is contained in:
Jakub Vrana 2011-07-12 15:45:55 +02:00
parent 67e5cbdb6e
commit 33c4623345

View file

@ -720,7 +720,7 @@ DROP PROCEDURE adminer_alter;
function homepage() {
echo '<p>' . ($_GET["ns"] == "" ? '<a href="' . h(ME) . 'database=">' . lang('Alter database') . "</a>\n" : "");
echo (support("scheme") ? "<a href='" . h(ME) . "scheme='>" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "</a>\n" : "");
echo '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n";
echo ($_GET["ns"] !== "" ? '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n" : "");
echo (support("privileges") ? "<a href='" . h(ME) . "privileges='>" . lang('Privileges') . "</a>\n" : "");
return true;
}