aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-31 17:35:24 -0700
committerFriendika <info@friendika.com>2011-05-31 17:35:24 -0700
commite25ded6d9611e4bada5474b7c7d7c96ad95c930e (patch)
tree657df7c70deeee9731b540fddaff2cf1f65c39ac /mod/ping.php
parent1d2cc5c5ad47e969ca4b6dd0f0eee4a4e5ab5663 (diff)
downloadvolse-hubzilla-e25ded6d9611e4bada5474b7c7d7c96ad95c930e.tar.gz
volse-hubzilla-e25ded6d9611e4bada5474b7c7d7c96ad95c930e.tar.bz2
volse-hubzilla-e25ded6d9611e4bada5474b7c7d7c96ad95c930e.zip
don't count wall posts in unseen network total
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/ping.php b/mod/ping.php
index b736ea995..6e8618bbd 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -8,7 +8,7 @@ function ping_init(&$a) {
xml_status(0);
$r = q("SELECT COUNT(*) AS `total` FROM `item`
- WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d",
+ WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `wall` = 0 ",
intval(local_user())
);
$network = $r[0]['total'];
@@ -25,8 +25,7 @@ function ping_init(&$a) {
);
$intro = $r[0]['total'];
- if ($a->config['register_policy'] == REGISTER_APPROVE &&
- $a->config['admin_email'] === $a->user['email']){
+ if (($a->config['register_policy'] == REGISTER_APPROVE) && (is_site_admin())) {
$r = q("SELECT COUNT(*) AS `total` FROM `register`");
$register = $r[0]['total'];
} else {