X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=0831e57bfa723bca2e84e09f6bb593feae110c6e;hb=ca706ccbed47ba8bf07afaaa825088afcde8cd91;hp=9f7191758e02b1816a8e92f3bb1da39c2cefcf53;hpb=ffb1997902facb36b78a7cfa522f41f2b3d71cda;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 9f7191758e..0831e57bfa 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -9,26 +9,26 @@ function ping_init(&$a) { $r = q("SELECT COUNT(*) AS `total` FROM `item` WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d", - intval(get_uid()) + intval(local_user()) ); $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' ", - intval(get_uid()) + intval(local_user()) ); $home = $r[0]['total']; $r = q("SELECT COUNT(*) AS `total` FROM `intro` WHERE `uid` = %d AND `blocked` = 0 AND `ignore` = 0 ", - intval(get_uid()) + intval(local_user()) ); $intro = $r[0]['total']; - $myurl = $a->get_baseurl() . '/profile/' . $user['nickname'] ; + $myurl = $a->get_baseurl() . '/profile/' . $a->user['nickname'] ; $r = q("SELECT COUNT(*) AS `total` FROM `mail` WHERE `uid` = %d AND `seen` = 0 AND `from-url` != '%s' ", - intval(get_uid()), + intval(local_user()), dbesc($myurl) );