mirror of
https://github.com/friendica/friendica
synced 2025-09-04 20:09:55 +02:00
provide a way to disable mailbox integration
This commit is contained in:
parent
2afd4c9d5a
commit
a0179235d2
9 changed files with 198 additions and 161 deletions
|
@ -148,10 +148,12 @@ function profile_content(&$a, $update = 0) {
|
|||
$jotplugins = '';
|
||||
$jotnets = '';
|
||||
|
||||
$mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
|
||||
|
||||
$mail_enabled = false;
|
||||
$pubmail_enabled = false;
|
||||
|
||||
if($is_owner) {
|
||||
if(($is_owner) && (! $mail_disabled)) {
|
||||
$r = q("SELECT * FROM `mailacct` WHERE `uid` = %d AND `server` != '' LIMIT 1",
|
||||
intval(local_user())
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue