PostgreSQL PDO: Do not select NULL function for false values in edit (thanks to PR #380)

This commit is contained in:
Jakub Vrana 2021-02-08 13:23:48 +01:00
parent 124092fd7c
commit d4f7e04156
2 changed files with 2 additions and 1 deletions

View file

@ -1444,7 +1444,7 @@ function edit_form($table, $fields, $row, $update) {
$value = ($row !== null
? ($row[$name] != "" && $jush == "sql" && preg_match("~enum|set~", $field["type"])
? (is_array($row[$name]) ? array_sum($row[$name]) : +$row[$name])
: $row[$name]
: (is_bool($row[$name]) ? +$row[$name] : $row[$name])
)
: (!$update && $field["auto_increment"]
? ""

View file

@ -3,6 +3,7 @@ Skip date columns for non-date values in search anywhere
Add DB version to comment in export
Support PHP 8 in create table (regression from 4.7.9)
MySQL 8: Fix EXPLAIN in SQL command
PostgreSQL PDO: Do not select NULL function for false values in edit
Adminer 4.7.9 (released 2021-02-07):
Fix XSS in browsers which don't encode URL parameters (bug #775, regression from 4.7.0)