]> git.mxchange.org Git - friendica.git/commitdiff
The first check for "pending" isn't neccessary.
authorMichael <heluecht@pirati.ca>
Tue, 29 Nov 2016 18:31:37 +0000 (18:31 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 29 Nov 2016 18:31:37 +0000 (18:31 +0000)
include/dfrn.php

index 8c03b658227dfc0f92c65ab7f0409ee344fa8a80..49af5b2acb8ea8ea201597c9ebefa50705f81210 100644 (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)
                        );