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
|
@ -188,7 +188,7 @@ function parse_url_content(&$a) {
|
|||
|
||||
if(! $text) {
|
||||
logger('parsing meta');
|
||||
$items = $domhead->getElementsByTagName('meta');
|
||||
$items = (isset($domhead) && is_object($domhead) ? $domhead->getElementsByTagName('meta') : null);
|
||||
if($items) {
|
||||
foreach($items as $item) {
|
||||
$property = $item->getAttribute('property');
|
||||
|
|
Loading…
Reference in New Issue
Block a user