From: Adam KuĊ›mierz Date: Wed, 29 Jun 2016 16:27:34 +0000 (+0200) Subject: Checkbox for bool in psql X-Git-Tag: v4.3.0~32 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=a062e9cc588bfa008481856503155bc9a833f379;p=adminer.git Checkbox for bool in psql --- diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 8bde16d4..43c04fdf 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -890,6 +890,9 @@ function input($field, $value, $function) { $input = $adminer->editInput($_GET["edit"], $field, $attrs, $value); // usage in call is without a table if ($input != "") { echo $input; + } elseif (preg_match('~bool~', $field["type"])) { + echo "" . + ""; } elseif ($field["type"] == "set") { //! 64 bits preg_match_all("~'((?:[^']|'')*)'~", $field["length"], $matches); foreach ($matches[1] as $i => $val) {