aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-12 23:14:41 -0700
committerfriendica <info@friendica.com>2012-04-12 23:14:41 -0700
commitdf1904b204a969780609cac64bbb1a03a8dd3fcb (patch)
tree13c8bfee5f3df28e4e4cc0a46d5ac048eeb1c858 /include
parent3c4e6d34610ae4913d1d9ea090499c5d328a62e8 (diff)
downloadvolse-hubzilla-df1904b204a969780609cac64bbb1a03a8dd3fcb.tar.gz
volse-hubzilla-df1904b204a969780609cac64bbb1a03a8dd3fcb.tar.bz2
volse-hubzilla-df1904b204a969780609cac64bbb1a03a8dd3fcb.zip
stray debug statements, forgot to filter pending contacts
Diffstat (limited to 'include')
-rw-r--r--include/Contact.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 657977801..388819b01 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -177,25 +177,25 @@ function random_profile() {
function contacts_not_grouped($uid,$start = 0,$count = 0) {
-dbg(1);
+
if(! $count) {
$r = q("select count(*) as total from contact where uid = %d and self = 0 and id not in (select distinct(`contact-id`) from group_member where uid = %d) ",
intval($uid),
intval($uid)
);
-dbg(0);
+
return $r;
}
-dbg(1);
- $r = q("select * from contact where uid = %d and self = 0 and id not in (select distinct(`contact-id`) from group_member where uid = %d) limit %d, %d",
+
+ $r = q("select * from contact where uid = %d and self = 0 and id not in (select distinct(`contact-id`) from group_member where uid = %d) and blocked = 0 and pending = 0 limit %d, %d",
intval($uid),
intval($uid),
intval($start),
intval($count)
);
-dbg(0);
+
return $r;
}