From 683cdcc19ef261f5fe632838a1e14567fc874ba2 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 5 May 2016 00:29:54 +0200 Subject: [PATCH] Changed check for searchability --- include/dfrn.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/dfrn.php b/include/dfrn.php index 7173421860..79b1a98370 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -1217,13 +1217,8 @@ class dfrn { /// - poco:region /// - poco:country - // The profile is searchable if it contains poco data - $searchable = (isset($poco["name"]) OR isset($poco["nick"]) OR isset($poco["about"]) OR isset($poco["location"])); - // If the "hide" element is present then the profile isn't searchable. - // Since this element is new (version >= 3.5), we need the check above as well. - if ($xpath->evaluate($element."/dfrn:hide/text()", $context)->item(0)->nodeValue == "true") - $searchable = false; + $searchable = !($xpath->evaluate($element."/dfrn:hide/text()", $context)->item(0)->nodeValue == "true"); // If the contact isn't searchable then set the contact to "hidden". // Problem: This can be manually overridden by the user. -- 2.39.5