]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
bug #85
[friendica.git] / mod / ping.php
index 00c4a31051fc1caaef514e14b1f66363e43cdccf..b736ea995c18c9b35ea976c1b60368e31a06925f 100644 (file)
@@ -14,7 +14,7 @@ function ping_init(&$a) {
        $network = $r[0]['total'];
 
        $r = q("SELECT COUNT(*) AS `total` FROM `item` 
-               WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `type` != 'remote' ",
+               WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `wall` = 1 ",
                intval(local_user())
        );
        $home = $r[0]['total'];
@@ -25,8 +25,8 @@ 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 &&        
+               $a->config['admin_email'] === $a->user['email']){
                        $r = q("SELECT COUNT(*) AS `total` FROM `register`");
                        $register = $r[0]['total'];
        } else {