consolidate disable_discover_tab config if it was not yet set to either 1 or 0 in DB

This commit is contained in:
git-marijus
2017-08-06 21:40:39 +02:00
parent a618f70f56
commit 68b32cd8f4
7 changed files with 15 additions and 12 deletions

View File

@@ -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']) . " ";