aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/email.php b/include/email.php
index 91aafd45e..db10af2ee 100644
--- a/include/email.php
+++ b/include/email.php
@@ -20,7 +20,7 @@ function email_poll($mbox,$email_addr) {
function construct_mailbox_name($mailacct) {
- $ret = '{' . $mailacct['server'] . (($mailacct['port']) ? ':' . $mailacct['port'] : '');
+ $ret = '{' . $mailacct['server'] . ((intval($mailacct['port'])) ? ':' . $mailacct['port'] : '');
$ret .= (($mailacct['ssltype']) ? '/' . $mailacct['ssltype'] . '/novalidate-cert' : '');
$ret .= '}' . $mailacct['mailbox'];
return $ret;