Changed check for searchability
This commit is contained in:
parent
ed485b9d61
commit
683cdcc19e
1 changed files with 1 additions and 6 deletions
|
@ -1217,13 +1217,8 @@ class dfrn {
|
||||||
/// - poco:region
|
/// - poco:region
|
||||||
/// - poco:country
|
/// - 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.
|
// 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.
|
$searchable = !($xpath->evaluate($element."/dfrn:hide/text()", $context)->item(0)->nodeValue == "true");
|
||||||
if ($xpath->evaluate($element."/dfrn:hide/text()", $context)->item(0)->nodeValue == "true")
|
|
||||||
$searchable = false;
|
|
||||||
|
|
||||||
// If the contact isn't searchable then set the contact to "hidden".
|
// If the contact isn't searchable then set the contact to "hidden".
|
||||||
// Problem: This can be manually overridden by the user.
|
// Problem: This can be manually overridden by the user.
|
||||||
|
|
Loading…
Reference in a new issue