diff options
author | git-marijus <mario@mariovavti.com> | 2017-08-06 21:40:39 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-08-06 21:40:39 +0200 |
commit | 68b32cd8f414fc3df1279a3458082b2d8dfc3430 (patch) | |
tree | 40768e806965ade0f5157fcc0f53bb30578e93fc /Zotlabs/Module/Network.php | |
parent | a618f70f56efdcaaf9da6dcfcab9cce6a933303b (diff) | |
download | volse-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/Network.php')
-rw-r--r-- | Zotlabs/Module/Network.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index 1954df549..36ae7f047 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -409,8 +409,9 @@ class Network extends \Zotlabs\Web\Controller { } $abook_uids = " and abook.abook_channel = " . local_channel() . " "; - - if($firehose && (! get_config('system','disable_discover_tab'))) { + + $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false; + if($firehose && (! $disable_discover_tab)) { require_once('include/channel.php'); $sys = get_sys_channel(); $uids = " and item.uid = " . intval($sys['channel_id']) . " "; |