diff options
author | Friendika <info@friendika.com> | 2011-05-22 06:05:01 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-22 06:05:01 -0700 |
commit | f4e47f168feb1075c30ba478e823f61dbcd26e02 (patch) | |
tree | 002dd95f14647948cd37a1f9cbd41fb253fe49b6 /boot.php | |
parent | 8510748b19c7b25635f988801630c38e904ff6bf (diff) | |
download | volse-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.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |