From 0c696efc01fed00105792155cf282373c3d96e3e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 27 Sep 2014 15:50:24 +0000 Subject: [PATCH] * PostgreSQL/Mail: changing password gave SQL error --- emailadmin/inc/class.emailadmin_credentials.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emailadmin/inc/class.emailadmin_credentials.inc.php b/emailadmin/inc/class.emailadmin_credentials.inc.php index 5c3661836e..f6afbd1a8a 100644 --- a/emailadmin/inc/class.emailadmin_credentials.inc.php +++ b/emailadmin/inc/class.emailadmin_credentials.inc.php @@ -22,7 +22,7 @@ class emailadmin_credentials { const APP = 'emailadmin'; const TABLE = 'egw_ea_credentials'; - const USER_EDITABLE_JOIN = 'JOIN egw_ea_accounts ON egw_ea_accounts.acc_id=egw_ea_credentials.acc_id AND acc_user_editable=1'; + const USER_EDITABLE_JOIN = 'JOIN egw_ea_accounts ON egw_ea_accounts.acc_id=egw_ea_credentials.acc_id AND acc_user_editable='; /** * Credentials for type IMAP @@ -365,7 +365,7 @@ class emailadmin_credentials $old_mcrypt = null; foreach(self::$db->select(self::TABLE, self::TABLE.'.*', array( 'account_id' => $data['account_id'] - ),__LINE__, __FILE__, false, '', 'emailadmin', 0, self::USER_EDITABLE_JOIN) as $row) + ),__LINE__, __FILE__, false, '', 'emailadmin', 0, self::USER_EDITABLE_JOIN.self::$db->quote(true, 'bool')) as $row) { if (!isset($old_mcrypt)) {