1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Meta PHP warnings fix.

This commit is contained in:
Cameron
2021-10-10 09:03:07 -07:00
parent 5e83895c8f
commit fd116c177a
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -60,7 +60,7 @@ class social_event
foreach($meta as $m)
{
if($m['name'] === 'og:image')
if(varset($m['name']) === 'og:image')
{
return null;
}