mirror of
https://github.com/friendica/friendica
synced 2024-11-20 11:03:42 +00:00
A 'PHP Fatal error: Call to a member function getElementsByTagName() on a non-object in mod/parse_url.php on line 191' occurred when the linked HTML-File doesn't have a HEAD. The HTML-file couln't be link to in the editor therefore.
This commit is contained in:
parent
5bb8ed4b8b
commit
02a9fd5dc1
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ function parse_url_content(&$a) {
|
||||||
|
|
||||||
if(! $text) {
|
if(! $text) {
|
||||||
logger('parsing meta');
|
logger('parsing meta');
|
||||||
$items = $domhead->getElementsByTagName('meta');
|
$items = (isset($domhead) && is_object($domhead) ? $domhead->getElementsByTagName('meta') : null);
|
||||||
if($items) {
|
if($items) {
|
||||||
foreach($items as $item) {
|
foreach($items as $item) {
|
||||||
$property = $item->getAttribute('property');
|
$property = $item->getAttribute('property');
|
||||||
|
|
Loading…
Reference in a new issue