0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

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
This commit is contained in:
David Goodwin 2009-08-04 20:41:24 +00:00
parent e1661563e3
commit 814539fe50

View File

@ -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) {