From: Michael <heluecht@pirati.ca>
Date: Tue, 29 Nov 2016 18:31:37 +0000 (+0000)
Subject: The first check for "pending" isn't neccessary.
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=af3549fa011b70d8917649d33a63cfc7d7f10f98;p=friendica.git

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

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)
 			);