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

@@ -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();