From af3549fa011b70d8917649d33a63cfc7d7f10f98 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 29 Nov 2016 18:31:37 +0000 Subject: [PATCH] The first check for "pending" isn't neccessary. --- include/dfrn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dfrn.php b/include/dfrn.php index 8c03b65822..49af5b2acb 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -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) ); -- 2.39.5