aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
authorMichael Vogel <icarus@dabo.de>2012-03-15 21:11:58 +0100
committerMichael Vogel <icarus@dabo.de>2012-03-15 21:11:58 +0100
commit9243c9fc141237453f05d215058d4b975d010437 (patch)
tree0c63dd28deeb2157ee2683e787f00a4e8b5eaa7b /mod/parse_url.php
parent6e7a190e9197bcf4d00accc5d85ccca4a080bec8 (diff)
parentab89aa90caced4f60fc0ae944c7190e156a872e2 (diff)
downloadvolse-hubzilla-9243c9fc141237453f05d215058d4b975d010437.tar.gz
volse-hubzilla-9243c9fc141237453f05d215058d4b975d010437.tar.bz2
volse-hubzilla-9243c9fc141237453f05d215058d4b975d010437.zip
Merge commit 'upstream/master'
Diffstat (limited to 'mod/parse_url.php')
-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');