X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Flib%2Fdiscoveryhints.php;h=9102788e6fbe3488a68093fd30505c8e3abf9d97;hb=7e2af3dcae956c7490df74be8d94fa09a4bab673;hp=1bb0ad2aea90e50ea4ee59915cc947e9ccd3bfb0;hpb=17c50f338ceb574780476f6b788f48e2d7d06017;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/lib/discoveryhints.php b/plugins/OStatus/lib/discoveryhints.php index 1bb0ad2aea..9102788e6f 100644 --- a/plugins/OStatus/lib/discoveryhints.php +++ b/plugins/OStatus/lib/discoveryhints.php @@ -65,6 +65,10 @@ class DiscoveryHints { { $hcard = self::_hcard($body, $url); + if (empty($hcard)) { + return array(); + } + $hints = array(); // XXX: don't copy stuff into an array and then copy it again