From 81f3a5cf940d8ac4904a8f1e404259cc45106ffc Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 19 Oct 2016 21:50:26 -0700 Subject: discover tab showing on network page using fresh site with no settings (it is disabled by default, but the admin setting has not yet been committed to disk). --- include/conversation.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index bc8f8ce8b..43533e3c1 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1536,7 +1536,11 @@ function network_tabs() { // tabs $tabs = array(); - if(! get_config('system','disable_discover_tab')) { + $d = get_config('system','disable_discover_tab'); + if($d === false) + $d = 1; + + if(! $d) { $tabs[] = array( 'label' => t('Discover'), 'url' => z_root() . '/' . $cmd . '?f=&fh=1' , -- cgit v1.2.3