From 1add172a0b760111758aff24fd92da1cc331b197 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 23 Sep 2009 15:33:54 +0000 Subject: [PATCH] Don't print new link on view git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1136 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/table.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/table.inc.php b/adminer/table.inc.php index dd3f1d11..fd26dac4 100644 --- a/adminer/table.inc.php +++ b/adminer/table.inc.php @@ -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 "\n";