diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-25 08:36:52 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-25 08:36:52 -0500 |
commit | e3095ce6b2c76f13a852f0ec5f782d71101a7c6a (patch) | |
tree | beab28cbc399ea17e0c2fd6c38724387bafa7c5c /include/network.php | |
parent | 70b8f3240f9bc38a41e314f613f6c1bd69f5b430 (diff) | |
parent | 673cf8d35e224fcbbc0caef5e638c08bc3914feb (diff) | |
download | volse-hubzilla-e3095ce6b2c76f13a852f0ec5f782d71101a7c6a.tar.gz volse-hubzilla-e3095ce6b2c76f13a852f0ec5f782d71101a7c6a.tar.bz2 volse-hubzilla-e3095ce6b2c76f13a852f0ec5f782d71101a7c6a.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/network.php b/include/network.php index 0824183f7..f8cb68613 100644 --- a/include/network.php +++ b/include/network.php @@ -1617,13 +1617,16 @@ function get_site_info() { 'lastpoll' => get_config('system','lastpoll'), 'info' => (($site_info) ? $site_info : ''), 'channels_total' => $channels_total_stat, - 'channels_active_halfyear' => $channels_active_halfyear_stat, - 'channels_active_monthly' => $channels_active_monthly_stat, - 'local_posts' => $local_posts_stat, - 'local_comments' => $local_comments_stat, 'hide_in_statistics' => $hide_in_statistics ]; + if(! $hide_in_statistics) { + $data['channels_active_halfyear'] = $channels_active_halfyear_stat; + $data['channels_active_monthly'] = $channels_active_monthly_stat; + $data['local_posts'] = $local_posts_stat; + $data['local_comments'] = $local_comments_stat; + } + return $data; } |