From a062e9cc588bfa008481856503155bc9a833f379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ku=C5=9Bmierz?= Date: Wed, 29 Jun 2016 18:27:34 +0200 Subject: [PATCH] Checkbox for bool in psql --- adminer/include/functions.inc.php | 3 +++ 1 file changed, 3 insertions(+) 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) {