fix db_get_boolean behaviour - postgres returns "t" or "f" - and also accepts this

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@700 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 15 years ago
parent e1661563e3
commit 814539fe50

@ -1514,9 +1514,9 @@ function db_get_boolean($bool) {
if($CONF['database_type']=='pgsql') {
// return either true or false (unquoted strings)
if($bool) {
return 'true';
return 't';
}
return 'false';
return 'f';
}
elseif($CONF['database_type'] == 'mysql' || $CONF['database_type'] == 'mysqli') {
if($bool) {

Loading…
Cancel
Save