diff options
author | Tobias Hößl <tobias@hoessl.eu> | 2012-03-03 10:44:34 +0000 |
---|---|---|
committer | Tobias Hößl <tobias@hoessl.eu> | 2012-03-03 10:44:34 +0000 |
commit | 02a9fd5dc1d1d9e848e2f406f2e13c4cf0ce228b (patch) | |
tree | ea7aa06791289126350cbb8780bba037a5fd898e /mod | |
parent | 5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6 (diff) | |
download | volse-hubzilla-02a9fd5dc1d1d9e848e2f406f2e13c4cf0ce228b.tar.gz volse-hubzilla-02a9fd5dc1d1d9e848e2f406f2e13c4cf0ce228b.tar.bz2 volse-hubzilla-02a9fd5dc1d1d9e848e2f406f2e13c4cf0ce228b.zip |
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.
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/parse_url.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php index e0b378f68..27dac4d5d 100755 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -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'); |