]> git.mxchange.org Git - friendica.git/commitdiff
Introductions are now added as well
authorMichael Vogel <icarus@dabo.de>
Sat, 28 Nov 2015 22:35:02 +0000 (23:35 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 28 Nov 2015 22:35:02 +0000 (23:35 +0100)
mod/manage.php

index 3f2023b7e3cd2b1d01c6c4461f9f92e778b2dec7..adcc3d787aac0d58563cbd5d38e82e50384498d2 100644 (file)
@@ -127,6 +127,11 @@ function manage_content(&$a) {
                if ($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;
        }