]> git.mxchange.org Git - friendica.git/commitdiff
A 'PHP Fatal error: Call to a member function getElementsByTagName() on a non-object...
authorTobias Hößl <tobias@hoessl.eu>
Sat, 3 Mar 2012 10:44:34 +0000 (10:44 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Sat, 3 Mar 2012 10:44:34 +0000 (10:44 +0000)
mod/parse_url.php

index e0b378f685448a2ac95142bf25649e733e267319..27dac4d5d318565483a392f3a0a7170e2dae4868 100755 (executable)
@@ -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');