aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-18 16:00:02 -0700
committerFriendika <info@friendika.com>2011-04-18 16:00:02 -0700
commit4b6a24ec3fe43a9b54eacd02684d07eb4a853a2c (patch)
tree4824c30d816f29b0365970ad7c2927c758079246 /include
parente2c9d04b368fa4eea6c86381e6216cda68fde9b4 (diff)
downloadvolse-hubzilla-4b6a24ec3fe43a9b54eacd02684d07eb4a853a2c.tar.gz
volse-hubzilla-4b6a24ec3fe43a9b54eacd02684d07eb4a853a2c.tar.bz2
volse-hubzilla-4b6a24ec3fe43a9b54eacd02684d07eb4a853a2c.zip
don't try to connect to port 0
Diffstat (limited to 'include')
-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;