aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-22 06:05:01 -0700
committerFriendika <info@friendika.com>2011-05-22 06:05:01 -0700
commitf4e47f168feb1075c30ba478e823f61dbcd26e02 (patch)
tree002dd95f14647948cd37a1f9cbd41fb253fe49b6 /boot.php
parent8510748b19c7b25635f988801630c38e904ff6bf (diff)
downloadvolse-hubzilla-f4e47f168feb1075c30ba478e823f61dbcd26e02.tar.gz
volse-hubzilla-f4e47f168feb1075c30ba478e823f61dbcd26e02.tar.bz2
volse-hubzilla-f4e47f168feb1075c30ba478e823f61dbcd26e02.zip
if xml doesn't parse, don't process it further
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 0704c2305..9581541bd 100644
--- a/boot.php
+++ b/boot.php
@@ -1508,6 +1508,8 @@ function lrdd($uri) {
logger('lrdd: host_meta: ' . $xml, LOGGER_DATA);
$h = parse_xml_string($xml);
+ if(! $h)
+ return array();
$arr = convert_xml_element_to_array($h);
@@ -1672,6 +1674,9 @@ function fetch_xrd_links($url) {
logger('fetch_xrd_links: ' . $xml, LOGGER_DATA);
$h = parse_xml_string($xml);
+ if(! $h)
+ return array();
+
$arr = convert_xml_element_to_array($h);
$links = array();