1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

PostgreSQL: Fix displaying NULL bytea fields

This commit is contained in:
Jakub Vrana
2021-02-09 10:08:27 +01:00
parent c5b5b61be1
commit 7a89b5a037
2 changed files with 2 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ if (isset($_GET["pgsql"])) {
}
function value($val, $field) {
return ($field["type"] == "bytea" ? pg_unescape_bytea($val) : $val);
return ($field["type"] == "bytea" && $val !== null ? pg_unescape_bytea($val) : $val);
}
function quoteBinary($string) {