Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Hide schema link in homepage with no schema

  • Loading branch information...
commit 33c4623345923a7fb3669b2eb29bbfc7154306cb 1 parent 67e5cbd
Jakub Vrána authored July 12, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  adminer/include/adminer.inc.php
2  adminer/include/adminer.inc.php
@@ -720,7 +720,7 @@ function dumpHeaders($identifier, $multi_table = false) {
720 720
 	function homepage() {
721 721
 		echo '<p>' . ($_GET["ns"] == "" ? '<a href="' . h(ME) . 'database=">' . lang('Alter database') . "</a>\n" : "");
722 722
 		echo (support("scheme") ? "<a href='" . h(ME) . "scheme='>" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "</a>\n" : "");
723  
-		echo '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n";
  723
+		echo ($_GET["ns"] !== "" ? '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n" : "");
724 724
 		echo (support("privileges") ? "<a href='" . h(ME) . "privileges='>" . lang('Privileges') . "</a>\n" : "");
725 725
 		return true;
726 726
 	}

0 notes on commit 33c4623

Please sign in to comment.
Something went wrong with that request. Please try again.