fix wrong parameter-name in admin-customers; check for disabled imap/pop3 when adding mail-accounts as customer, fixes #1298

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-30 16:07:23 +01:00
parent 1e87c21956
commit f278b42353
4 changed files with 11 additions and 4 deletions

View File

@@ -1415,7 +1415,7 @@ if ($page == 'customers'
// Disable or enable IMAP Login for customers Mail Accounts
if ($email_imap != $result['imap']) {
$upd_stmt = Database::prepare("UPDATE `" . TABLE_MAIL_USERS . "` SET `imap` = :imap WHERE `customerid` = :customerid");
Database::pexecute($upd_stmt, array('pop3' => $email_imap, 'customerid' => $id));
Database::pexecute($upd_stmt, array('imap' => $email_imap, 'customerid' => $id));
}
$upd_data = array(