From: Jakub Vrana Date: Tue, 2 Nov 2010 09:29:32 +0000 (+0100) Subject: Hide hashes in select X-Git-Tag: v3.1.0~14 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=014373ca8256ae6d1d9f649409b171ec2e7d65e0;p=adminer.git Hide hashes in select --- 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"]) : ""); }