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:
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…
Reference in New Issue
Block a user