add domainid to result-list of Emails.get(); fix typo in EmailAccounts.add(); enhance debugging in Database-class
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -109,7 +109,7 @@ class EmailAccounts extends ApiCommand implements ResourceEntity
|
||||
`customerid` = :cid,
|
||||
`email` = :email,
|
||||
`username` = :username," . (Settings::Get('system.mailpwcleartext') == '1' ? '`password` = :password, ' : '') . "
|
||||
`password_enc` = :password_end,
|
||||
`password_enc` = :password_enc,
|
||||
`homedir` = :homedir,
|
||||
`maildir` = :maildir,
|
||||
`uid` = :uid,
|
||||
|
||||
@@ -162,7 +162,7 @@ class Emails extends ApiCommand implements ResourceEntity
|
||||
$params['customerid'] = implode(", ", $customer_ids);
|
||||
$params['idea'] = ($id <= 0 ? $emailaddr : $id);
|
||||
|
||||
$result_stmt = Database::prepare("SELECT v.`id`, v.`email`, v.`email_full`, v.`iscatchall`, v.`destination`, v.`customerid`, v.`popaccountid`, u.`quota`
|
||||
$result_stmt = Database::prepare("SELECT v.`id`, v.`email`, v.`email_full`, v.`iscatchall`, v.`destination`, v.`customerid`, v.`popaccountid`, v.`domainid`, u.`quota`
|
||||
FROM `" . TABLE_MAIL_VIRTUAL . "` v
|
||||
LEFT JOIN `" . TABLE_MAIL_USERS . "` u ON v.`popaccountid` = u.`id`
|
||||
WHERE v.`customerid` IN (:customerid)
|
||||
|
||||
Reference in New Issue
Block a user