memory overflow trying to delete a connection with a very high noise to signal ratio

This commit is contained in:
zotlabs 2017-10-29 22:21:52 -07:00
parent 56c3d5dbcb
commit 4fef29e61c

View File

@ -369,7 +369,7 @@ function contact_remove($channel_id, $abook_id) {
return false;
$r = q("select * from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d",
$r = q("select id from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d",
dbesc($abook['abook_xchan']),
dbesc($abook['abook_xchan']),
intval($channel_id)