aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-18 16:03:07 -0700
committerFriendika <info@friendika.com>2011-04-18 16:03:07 -0700
commitb168847b56898412bce6b950df452102c90231d1 (patch)
tree1d453a466ffac1244435ebc571645902ca0bfe67 /mod
parent4b6a24ec3fe43a9b54eacd02684d07eb4a853a2c (diff)
downloadvolse-hubzilla-b168847b56898412bce6b950df452102c90231d1.tar.gz
volse-hubzilla-b168847b56898412bce6b950df452102c90231d1.tar.bz2
volse-hubzilla-b168847b56898412bce6b950df452102c90231d1.zip
still getting a zero
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php8
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);