aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-06 20:27:18 -0700
committerFriendika <info@friendika.com>2011-07-06 20:27:18 -0700
commitd7b5a606fb7992cfc29fac4bc19429da08972364 (patch)
tree15c0822e3c1f2fdf4851140c87e920ed3a7d575b /mod/settings.php
parent3f258300766543d6fd3203265aa5c5355886e550 (diff)
downloadvolse-hubzilla-d7b5a606fb7992cfc29fac4bc19429da08972364.tar.gz
volse-hubzilla-d7b5a606fb7992cfc29fac4bc19429da08972364.tar.bz2
volse-hubzilla-d7b5a606fb7992cfc29fac4bc19429da08972364.zip
don't show mailbox settings at all if disabled
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/settings.php b/mod/settings.php
index ea71f7020..e11555687 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -115,6 +115,8 @@ function settings_post(&$a) {
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
+ if(get_config('system','dfrn_only'))
+ $mail_disabled = 1;
if(! $mail_disabled) {
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d LIMIT 1",
@@ -355,6 +357,8 @@ function settings_content(&$a) {
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
+ if(get_config('system','dfrn_only'))
+ $mail_disabled = 1;
if(! $mail_disabled) {
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d LIMIT 1",