1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-21 21:55:43 +02:00

Editor: Fix displaying of false values in PostgreSQL (bug #568)

This commit is contained in:
Jakub Vrana
2018-01-23 11:02:15 +01:00
parent 7b9d5a29aa
commit 0cdd8beab1
3 changed files with 3 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
}
}
if (like_bool($field) && $return != " ") { // bool
$return = ($val ? lang('yes') : lang('no'));
$return = (preg_match('~^(1|t|true|y|yes|on)$~i', $value) ? lang('yes') : lang('no'));
}
if ($link) {
$return = "<a href='$link'" . (is_url($link) ? " rel='noreferrer'" : "") . ">$return</a>";