mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Meta PHP warnings fix.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -60,7 +60,7 @@ class social_event
|
||||
|
||||
foreach($meta as $m)
|
||||
{
|
||||
if($m['name'] === 'og:image')
|
||||
if(varset($m['name']) === 'og:image')
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user