mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
fix broken tracker mailhandling caused by protected constructor
also disable reading from DB, in case no (numeric) acc_id given, like from tracker mailhandling
This commit is contained in:
parent
ce3e48fb42
commit
ac1a7f6bdb
@ -249,7 +249,10 @@ class Account implements \ArrayAccess
|
||||
* @param int $called_for=null if set access to given user (without smtp credentials!),
|
||||
* default current user AND read username/password from current users session
|
||||
*/
|
||||
protected function __construct(array $params, $called_for=null)
|
||||
public function __construct(array $params, $called_for=null)
|
||||
{
|
||||
// tracker_mailhandling instantiates class without our database (acc_id==="tracker*")
|
||||
if ((int)$params['acc_id'] > 0)
|
||||
{
|
||||
// read credentials from database
|
||||
$params += Credentials::read($params['acc_id'], null, $called_for ? array(0, $called_for) : $called_for, $this->on_login);
|
||||
@ -267,6 +270,7 @@ class Account implements \ArrayAccess
|
||||
(!isset($called_for) ? array() : array('acc_smtp_auth_session' => false)) + $params, !isset($called_for)
|
||||
) + $params;
|
||||
}
|
||||
}
|
||||
$this->params = $params;
|
||||
unset($this->imapServer);
|
||||
unset($this->smtpServer);
|
||||
|
Loading…
Reference in New Issue
Block a user