diff options
-rw-r--r-- | mod/settings.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/settings.php b/mod/settings.php index 1e82472f8..7a9469068 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -289,10 +289,10 @@ function settings_content(&$a) { local_user() ); - $mail_server = ((count($r)) ? $r[0]['server'] : ''); - $mail_port = ((count($r)) ? intval($r[0]['port']) : ''); - $mail_ssl = ((count($r)) ? $r[0]['ssltype'] : ''); - $mail_user = ((count($r)) ? $r[0]['user'] : ''); + $mail_server = ((count($r)) ? $r[0]['server'] : ''); + $mail_port = ((count($r) && intval($r[0]['port'])) ? 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'] : ''); $mail_pubmail = ((count($r)) ? $r[0]['pubmail'] : 0); |