item cleanup

This commit is contained in:
Mike Macgirvin 2010-09-09 19:48:08 -07:00
parent 49c9860e61
commit 3a3bf273c7

View file

@ -34,8 +34,10 @@ function get_feed_for(&$a, $dfrn_id, $owner_id, $last_update) {
if($dfrn_id != '*') { if($dfrn_id != '*') {
$r = q("SELECT * FROM `contact` WHERE `issued-id` = '%s' LIMIT 1", $r = q("SELECT * FROM `contact` WHERE ( `issued-id` = '%s' OR ( `duplex` = 1 AND `dfrn-id` = '%s' )) AND `uid` = %d LIMIT 1",
dbesc($dfrn_id) dbesc($dfrn_id),
dbesc($dfrn_id),
intval($owner_id)
); );
if(! count($r)) if(! count($r))
return false; return false;