mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
Editor: Do not check boolean checkboxes with false in PostgreSQL (bug #607)
This commit is contained in:
@@ -485,7 +485,7 @@ qsl('div').onclick = whisperClick;", "")
|
||||
);
|
||||
}
|
||||
if (like_bool($field)) {
|
||||
return '<input type="checkbox" value="' . h($value ? $value : 1) . '"' . ($value ? ' checked' : '') . "$attrs>";
|
||||
return '<input type="checkbox" value="' . h($value ? $value : 1) . '"' . (preg_match('~^(1|t|true|y|yes|on)$~i', $value) ? ' checked' : '') . "$attrs>";
|
||||
}
|
||||
$hint = "";
|
||||
if (preg_match('~time~', $field["type"])) {
|
||||
|
Reference in New Issue
Block a user