Permalink
Browse files

Hide schema link in homepage with no schema

  • Loading branch information...
1 parent 67e5cbd commit 33c4623345923a7fb3669b2eb29bbfc7154306cb @vrana committed Jul 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/adminer.inc.php
View
2 adminer/include/adminer.inc.php
@@ -720,7 +720,7 @@ function dumpHeaders($identifier, $multi_table = false) {
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;
}

0 comments on commit 33c4623

Please sign in to comment.