From 014373ca8256ae6d1d9f649409b171ec2e7d65e0 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 2 Nov 2010 10:29:32 +0100 Subject: [PATCH] Hide hashes in select --- editor/example.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/example.php b/editor/example.php index e15807d8..f0c3b9e4 100644 --- a/editor/example.php +++ b/editor/example.php @@ -29,6 +29,9 @@ function adminer_object() { } function fieldName($field, $order = 0) { + if ($order && ereg('_(md5|sha1)$', $field["field"])) { + return ""; // hide hashes in select + } // only columns with comments will be displayed and only the first five in select return ($order <= 5 ? h($field["comment"]) : ""); }