From b8c4332a2040cea440f6f5b746165be5f62d4d30 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 20 Jan 2018 19:31:47 +0000 Subject: [PATCH] Only enable "pubmail" when it is enabled --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/item.php b/mod/item.php index 18e4cefd3e..355d315baf 100644 --- a/mod/item.php +++ b/mod/item.php @@ -262,7 +262,7 @@ function item_post(App $a) { // if using the API, we won't see pubmail_enable - figure out if it should be set if ($api_source && $profile_uid && $profile_uid == local_user() && !$private) { if (function_exists('imap_open') && !Config::get('system', 'imap_disabled')) { - $pubmail_enabled = dba::exists('mailacct', ["`uid` = ? AND `server` != ?", local_user(), '']); + $pubmail_enabled = dba::exists('mailacct', ["`uid` = ? AND `server` != ? AND `pubmail`", local_user(), '']); } } -- 2.39.5