Permalink
Browse files

Hide search for hidden enums (thanks to hever)

  • Loading branch information...
1 parent 6c1598e commit 628a43156d02ef0a34c767fb74545ead6dc9e9b5 @vrana committed Jul 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 editor/include/adminer.inc.php
@@ -197,8 +197,8 @@ function selectSearchPrint($where, $columns, $indexes) {
$i = 0;
$fields = fields($_GET["select"]);
foreach ($fields as $name => $field) {
- if (ereg("enum", $field["type"])) { //! set - uses 1 << $i and FIND_IN_SET()
- $desc = $columns[$name];
+ $desc = $columns[$name];
+ if (ereg("enum", $field["type"]) && $desc != "") { //! set - uses 1 << $i and FIND_IN_SET()
$key = $keys[$name];
$i--;
echo "<div>" . h($desc) . "<input type='hidden' name='where[$i][col]' value='" . h($name) . "'>:";

0 comments on commit 628a431

Please sign in to comment.