From 22a7ebd181c224e86973ccd142f30bbf374564ba Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 1 Jul 2010 09:58:20 +0200 Subject: [PATCH] Hide edit link without columns --- adminer/select.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 1711d6f1..21e3e2ac 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -235,7 +235,7 @@ if (!$columns) { $backward_keys = $adminer->backwardKeys($TABLE, $table_name); echo "\n"; - echo "" . (!$group && $select ? "" : "
" . lang('edit') . ""; + echo "
" . lang('edit') . ""); $names = array(); $functions = array(); reset($select); @@ -267,7 +267,7 @@ if (!$columns) { foreach ($unique_array as $key => $val) { $unique_idf .= "&" . (isset($val) ? urlencode("where[" . bracket_escape($key) . "]") . "=" . urlencode($val) : "null%5B%5D=" . urlencode($key)); } - echo "" . checkbox("check[]", substr($unique_idf, 1), in_array(substr($unique_idf, 1), (array) $_POST["check"]), "", "this.form['all'].checked = false; formUncheck('all-page');") . (count($select) != count($group) || information_schema(DB) ? '' : " " . lang('edit') . ""); + echo "" . (!$group && $select ? "" : "" . checkbox("check[]", substr($unique_idf, 1), in_array(substr($unique_idf, 1), (array) $_POST["check"]), "", "this.form['all'].checked = false; formUncheck('all-page');") . (count($group) < count($select) || information_schema(DB) ? "" : " " . lang('edit') . "")); foreach ($row as $key => $val) { if (isset($names[$key])) { $field = $fields[$key];