* PostgreSQL/Mail: changing password gave SQL error

This commit is contained in:
Ralf Becker 2014-09-27 15:50:24 +00:00
parent b9c985e045
commit 0c696efc01

View File

@ -22,7 +22,7 @@ class emailadmin_credentials
{ {
const APP = 'emailadmin'; const APP = 'emailadmin';
const TABLE = 'egw_ea_credentials'; 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 * Credentials for type IMAP
@ -365,7 +365,7 @@ class emailadmin_credentials
$old_mcrypt = null; $old_mcrypt = null;
foreach(self::$db->select(self::TABLE, self::TABLE.'.*', array( foreach(self::$db->select(self::TABLE, self::TABLE.'.*', array(
'account_id' => $data['account_id'] '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)) if (!isset($old_mcrypt))
{ {