aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ping.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-08-06 21:40:39 +0200
committergit-marijus <mario@mariovavti.com>2017-08-06 21:40:39 +0200
commit68b32cd8f414fc3df1279a3458082b2d8dfc3430 (patch)
tree40768e806965ade0f5157fcc0f53bb30578e93fc /Zotlabs/Module/Ping.php
parenta618f70f56efdcaaf9da6dcfcab9cce6a933303b (diff)
downloadvolse-hubzilla-68b32cd8f414fc3df1279a3458082b2d8dfc3430.tar.gz
volse-hubzilla-68b32cd8f414fc3df1279a3458082b2d8dfc3430.tar.bz2
volse-hubzilla-68b32cd8f414fc3df1279a3458082b2d8dfc3430.zip
consolidate disable_discover_tab config if it was not yet set to either 1 or 0 in DB
Diffstat (limited to 'Zotlabs/Module/Ping.php')
-rw-r--r--Zotlabs/Module/Ping.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php
index f38ed510e..1a76f4f7b 100644
--- a/Zotlabs/Module/Ping.php
+++ b/Zotlabs/Module/Ping.php
@@ -139,7 +139,8 @@ class Ping extends \Zotlabs\Web\Controller {
db_utcnow(), db_quoteinterval('3 MINUTE')
);
- $notify_pubs = local_channel() ? ($vnotify & VNOTIFY_PUBS) && ! get_config('system', 'disable_discover_tab') : ! get_config('system', 'disable_discover_tab');
+ $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false;
+ $notify_pubs = ((local_channel()) ? ($vnotify & VNOTIFY_PUBS) && !$disable_discover_tab : !$disable_discover_tab);
if($notify_pubs) {
$sys = get_sys_channel();