mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Meta PHP warnings fix.
This commit is contained in:
@@ -4164,7 +4164,7 @@ class eResponse
|
|||||||
{
|
{
|
||||||
foreach($this->_meta as $k=>$v)
|
foreach($this->_meta as $k=>$v)
|
||||||
{
|
{
|
||||||
if($v['name'] === $name)
|
if(!empty($v['name']) && ($v['name'] === $name))
|
||||||
{
|
{
|
||||||
$this->_meta[$k]['content'] = $content;
|
$this->_meta[$k]['content'] = $content;
|
||||||
}
|
}
|
||||||
|
@@ -60,7 +60,7 @@ class social_event
|
|||||||
|
|
||||||
foreach($meta as $m)
|
foreach($meta as $m)
|
||||||
{
|
{
|
||||||
if($m['name'] === 'og:image')
|
if(varset($m['name']) === 'og:image')
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user