diff options
author | git-marijus <mario@mariovavti.com> | 2017-08-06 21:40:39 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-08-06 23:34:05 +0200 |
commit | 0085b64b2bb22cf463ec66376d06d64d5b5b5730 (patch) | |
tree | 0f99658f095296826b21c7545a6657bd77e1de19 /include/conversation.php | |
parent | 913046aa28740f91d5aa16f0bfa8c764a7a24c03 (diff) | |
download | volse-hubzilla-0085b64b2bb22cf463ec66376d06d64d5b5b5730.tar.gz volse-hubzilla-0085b64b2bb22cf463ec66376d06d64d5b5b5730.tar.bz2 volse-hubzilla-0085b64b2bb22cf463ec66376d06d64d5b5b5730.zip |
consolidate disable_discover_tab config if it was not yet set to either 1 or 0 in DB
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/conversation.php b/include/conversation.php index 1c1a4479d..ec887fc6c 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1622,11 +1622,9 @@ function network_tabs() { // tabs $tabs = array(); - $d = get_config('system','disable_discover_tab'); - if($d === false) - $d = 1; + $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false; - if(! $d) { + if(! $disable_discover_tab) { $tabs[] = array( 'label' => t('Discover'), 'url' => z_root() . '/' . $cmd . '?f=&fh=1' , |