]> git.mxchange.org Git - friendica.git/commitdiff
Only enable "pubmail" when it is enabled
authorMichael <heluecht@pirati.ca>
Sat, 20 Jan 2018 19:31:47 +0000 (19:31 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 20 Jan 2018 19:31:47 +0000 (19:31 +0000)
mod/item.php

index 18e4cefd3e66f382603b8e99f1d1c07730e18643..355d315baf98f95d834a4f56f515eaa0c24fd5f9 100644 (file)
@@ -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(), '']);
                        }
                }