From 814539fe503c895665fe7533fbba6a04d1c1a3cb Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 4 Aug 2009 20:41:24 +0000 Subject: [PATCH] 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 --- functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 9de4867a..17d0bd70 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -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) {