return empty hints if no hcard in the html

This commit is contained in:
Evan Prodromou 2010-03-19 15:28:06 -05:00
parent 1e03968d91
commit 5092f98c0d

View File

@ -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