diff --git a/e107_handlers/application.php b/e107_handlers/application.php index 74ac8a3a8..bcb18a134 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -4164,7 +4164,7 @@ class eResponse { foreach($this->_meta as $k=>$v) { - if($v['name'] === $name) + if(!empty($v['name']) && ($v['name'] === $name)) { $this->_meta[$k]['content'] = $content; } diff --git a/e107_plugins/social/e_event.php b/e107_plugins/social/e_event.php index 2df2e388a..9b30068d4 100644 --- a/e107_plugins/social/e_event.php +++ b/e107_plugins/social/e_event.php @@ -60,7 +60,7 @@ class social_event foreach($meta as $m) { - if($m['name'] === 'og:image') + if(varset($m['name']) === 'og:image') { return null; }