Introductions are now added as well

This commit is contained in:
Michael Vogel 2015-11-28 23:35:02 +01:00
parent 58a261a29a
commit 68916689de
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ function manage_content(&$a) {
if ($r) if ($r)
$notifications = $notifications + sizeof($r); $notifications = $notifications + sizeof($r);
$r = q("SELECT COUNT(*) AS `introductions` FROM `intro` WHERE NOT `blocked` AND NOT `ignore` AND `uid` = %d",
intval($id['uid']));
if ($r)
$notifications = $notifications + $r[0]["introductions"];
$identities[$key]['notifications'] = $notifications; $identities[$key]['notifications'] = $notifications;
} }