]> git.joonet.de Git - adminer.git/commitdiff
Don't print new link on view
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 23 Sep 2009 15:33:54 +0000 (15:33 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Wed, 23 Sep 2009 15:33:54 +0000 (15:33 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1136 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/table.inc.php

index dd3f1d11c2e4add5bc6dcbb42e4cce13a22c3da4..fd26dac430c4ba2490874383999c3cc7c3666142 100644 (file)
@@ -5,9 +5,10 @@ if (!$result) {
        $error = h($connection->error);
 }
 $table_status = ($result ? table_status($TABLE) : array());
+$is_view = !isset($table_status["Rows"]);
 
 page_header(($result && $is_view ? lang('View') : lang('Table')) . ": " . h($TABLE), $error);
-$adminer->selectLinks($table_status);
+$adminer->selectLinks($table_status, $is_view ? null : "");
 
 if ($result) {
        echo "<table cellspacing='0'>\n";