From 850173aae56ed9bcf98c1ecfabde57540177e75f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 24 Oct 2008 07:53:01 +0000 Subject: [PATCH] postgres compatibility for user defined accounts --- felamimail/inc/class.sopreferences.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/felamimail/inc/class.sopreferences.inc.php b/felamimail/inc/class.sopreferences.inc.php index 44a97b1687..d823230094 100644 --- a/felamimail/inc/class.sopreferences.inc.php +++ b/felamimail/inc/class.sopreferences.inc.php @@ -42,7 +42,7 @@ $where,__LINE__,__FILE__); while(($row = $this->db->row(true,'fm_'))) { - foreach(array('ic_validatecertificate','ic_enable_sieve','og_smtpauth') as $name) + foreach(array('active','ic_validatecertificate','ic_enable_sieve','og_smtpauth') as $name) { $row[$name] = $this->db->from_bool($row[$name]); } @@ -139,7 +139,7 @@ { $data = array( - 'fm_active' => 0, + 'fm_active' => false, 'fm_realname' => $_identity->realName, 'fm_organization' => $_identity->organization, 'fm_emailaddress' => $_identity->emailAddress, @@ -203,7 +203,7 @@ function setProfileActive($_accountID, $_status) { $this->db->update($this->accounts_table,array( - 'fm_active' => $_status, + 'fm_active' => (bool)$_status, ),array( 'fm_owner' => $_accountID, ),__LINE__,__FILE__);