Hide hashes in select

This commit is contained in:
Jakub Vrana 2010-11-02 10:29:32 +01:00
parent 7abc734607
commit 014373ca82

View file

@ -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"]) : "");
}