]> git.mxchange.org Git - friendica.git/blobdiff - include/identity.php
Emulation for the mysqli behaviour when executing insert, update, ...
[friendica.git] / include / identity.php
index d3852b2c2c23415e1c6a6809de88f5cf0ed723a5..ab80c71cea1889f357f4ed3b2973c69c7752e5cb 100644 (file)
@@ -374,7 +374,10 @@ function profile_sidebar($profile, $block = 0) {
                        if (dbm::is_result($r))
                                $updated =  date("c", strtotime($r[0]['updated']));
 
-                       $r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `hidden` AND NOT `archive`
+                       $r = q("SELECT COUNT(*) AS `total` FROM `contact`
+                               WHERE `uid` = %d
+                                       AND NOT `self` AND NOT `blocked` AND NOT `pending`
+                                       AND NOT `hidden` AND NOT `archive`
                                        AND `network` IN ('%s', '%s', '%s', '')",
                                intval($profile['uid']),
                                dbesc(NETWORK_DFRN),