aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-25 13:01:23 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-25 13:01:23 +0100
commit673cf8d35e224fcbbc0caef5e638c08bc3914feb (patch)
tree6056bbadaf19fb8eefbf47003fed1e6bcea36c09 /include/network.php
parentfed61c082c8f9d6a7673125bd365d44d4b409fa4 (diff)
parentd406e2aae20f20a7df6fc77d9317323de043c0f6 (diff)
downloadvolse-hubzilla-673cf8d35e224fcbbc0caef5e638c08bc3914feb.tar.gz
volse-hubzilla-673cf8d35e224fcbbc0caef5e638c08bc3914feb.tar.bz2
volse-hubzilla-673cf8d35e224fcbbc0caef5e638c08bc3914feb.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php11
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;
}