1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

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