aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorTobias Hößl <tobias@hoessl.eu>2012-03-03 10:44:34 +0000
committerTobias Hößl <tobias@hoessl.eu>2012-03-03 10:44:34 +0000
commit02a9fd5dc1d1d9e848e2f406f2e13c4cf0ce228b (patch)
treeea7aa06791289126350cbb8780bba037a5fd898e /mod
parent5bb8ed4b8b5310acc8556ef2fba7b3958284b2a6 (diff)
downloadvolse-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-xmod/parse_url.php2
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');