The first check for "pending" isn't neccessary.

This commit is contained in:
Michael 2016-11-29 18:31:37 +00:00
parent b2302f6290
commit af3549fa01

View file

@ -134,7 +134,7 @@ class dfrn {
break; // NOTREACHED
}
$r = q("SELECT * FROM `contact` WHERE (NOT `blocked` OR `pending`) AND `contact`.`uid` = %d $sql_extra LIMIT 1",
$r = q("SELECT * FROM `contact` WHERE NOT `blocked` AND `contact`.`uid` = %d $sql_extra LIMIT 1",
intval($owner_id)
);