From 6f653b16972e0699ef385aee0de7ea9cbfdeded8 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 4 Aug 2009 20:45:21 +0000 Subject: [PATCH] fix boolean handling for postgres - see https://sourceforge.net/tracker/?func=detail&aid=2830001&group_id=191583&atid=937964 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@701 a1433add-5e2c-0410-b055-b7f2511e0802 --- templates/admin_list-domain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/admin_list-domain.php b/templates/admin_list-domain.php index b01e08b9..95c6dcbf 100644 --- a/templates/admin_list-domain.php +++ b/templates/admin_list-domain.php @@ -71,10 +71,10 @@ if (sizeof ($domain_properties) > 0) print "\n"; } if ($CONF['transport'] == 'YES') print "" . $domain_properties[$i]['transport'] . ""; - $backupmx = ($domain_properties[$i]['backupmx'] == 1) ? $PALANG['YES'] : $PALANG['NO']; + $backupmx = ($domain_properties[$i]['backupmx'] == db_get_boolean(true)) ? $PALANG['YES'] : $PALANG['NO']; print "$backupmx"; print "" . $domain_properties[$i]['modified'] . ""; - $active = ($domain_properties[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; + $active = ($domain_properties[$i]['active'] == db_get_boolean(true)) ? $PALANG['YES'] : $PALANG['NO']; print "" . $active . ""; print "" . $PALANG['edit'] . ""; print "" . $PALANG['del'] . "";