don't include pending connections in poco
This commit is contained in:
parent
eb1e9edd33
commit
60fcb5f4f2
@ -385,7 +385,7 @@ function poco($a,$extended = false) {
|
||||
$sql_extra = " and abook_self = 0 ";
|
||||
|
||||
if($cid)
|
||||
$sql_extra = sprintf(" and abook_id = %d and abook_hidden = 0 ",intval($cid));
|
||||
$sql_extra = sprintf(" and abook_id = %d and abook_hidden = 0 and abook_pending = 0 ",intval($cid));
|
||||
|
||||
if($system_mode) {
|
||||
$r = q("SELECT count(*) as total from abook where abook_self = 1
|
||||
|
Reference in New Issue
Block a user