From: Friendika Date: Mon, 18 Apr 2011 22:58:01 +0000 (-0700) Subject: leave imap port blank if 0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e2c9d04b368fa4eea6c86381e6216cda68fde9b4;p=friendica.git leave imap port blank if 0 --- diff --git a/mod/settings.php b/mod/settings.php index 8b7e3c5d69..1e82472f8c 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -290,7 +290,7 @@ function settings_content(&$a) { ); $mail_server = ((count($r)) ? $r[0]['server'] : ''); - $mail_port = ((count($r)) ? $r[0]['port'] : ''); + $mail_port = ((count($r)) ? intval($r[0]['port']) : ''); $mail_ssl = ((count($r)) ? $r[0]['ssltype'] : ''); $mail_user = ((count($r)) ? $r[0]['user'] : ''); $mail_replyto = ((count($r)) ? $r[0]['reply_to'] : '');