[error] PHP Fatal error: Cannot use object of type stdClass as array
aaronpk opened this issue · 1 comments
aaronpk commented
PHP Fatal error: Cannot use object of type stdClass as array in vendor/mf2/mf2/Mf2/Parser.php on line 1412
encountered while parsing this URL: https://www.eatthispodcast.com/our-daily-bread-22/
aaronpk commented
Changing this line to the below fixes it. This is caused by there being no properties on an object at all, so checking for the existence of url
crashes since properties
is an object in this case.
$prefixSpecificResult['value'] = (!is_array($result['properties']) || empty($result['properties']['url'])) ? $this->parseU($node) : reset($result['properties']['url']);