From 437a92d0b5e8be299c124163d06d5f2910f383a8 Mon Sep 17 00:00:00 2001 From: anbrosius Date: Sun, 22 Jul 2012 14:51:02 +0200 Subject: [PATCH] Fix bug IMAP/POP3 after reactivating a customer --- admin_customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_customers.php b/admin_customers.php index 52eb0fc1..5c12dcfd 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -1238,7 +1238,7 @@ if($page == 'customers' if($deactivated != $result['deactivated']) { - $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `postfix`='" . (($deactivated) ? 'N' : 'Y') . "', `pop3`='" . (($deactivated) ? '0' : '1') . "', `imap`='" . (($deactivated) ? '0' : '1') . "' WHERE `customerid`='" . (int)$id . "'"); + $db->query("UPDATE `" . TABLE_MAIL_USERS . "` SET `postfix`='" . (($deactivated) ? 'N' : 'Y') . "', `pop3`='" . (($deactivated) ? '0' : (int)$result['pop3']) . "', `imap`='" . (($deactivated) ? '0' : (int)$result['imap']) . "' WHERE `customerid`='" . (int)$id . "'"); $db->query("UPDATE `" . TABLE_FTP_USERS . "` SET `login_enabled`='" . (($deactivated) ? 'N' : 'Y') . "' WHERE `customerid`='" . (int)$id . "'"); $db->query("UPDATE `" . TABLE_PANEL_DOMAINS . "` SET `deactivated`='" . (int)$deactivated . "' WHERE `customerid`='" . (int)$id . "'");