}
if (!is_object($xrd)) {
logger("No xrd object found for ".$host, LOGGER_DEBUG);
- return false;
+ return array();
}
$links = xml::element_to_array($xrd);
if (!isset($links["xrd"]["link"])) {
logger("No xrd data found for ".$host, LOGGER_DEBUG);
- return false;
+ return array();
}
$xrd_data = array();
$lrdd = self::xrd($uri);
$webfinger = null;
+ if (is_bool($lrdd)) {
+ return array();
+ }
+
if (!$lrdd) {
$parts = @parse_url($uri);
if (!$parts) {
}
$lrdd = self::xrd($host);
+ if (is_bool($lrdd)) {
+ return array();
+ }
+
$path_parts = explode("/", trim($parts["path"], "/"));
while (!$lrdd AND (sizeof($path_parts) > 1)) {
}
$lrdd = self::xrd($host);
+ if (is_bool($lrdd)) {
+ return array();
+ }
+
if (!$lrdd) {
logger('No XRD data was found for '.$uri, LOGGER_DEBUG);
return self::mail($uri, $uid);