mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Fix for og:image on news items.
This commit is contained in:
@@ -461,11 +461,11 @@ class news_front
|
||||
$tmp = explode(",", $iurl);
|
||||
foreach($tmp as $mimg)
|
||||
{
|
||||
if(substr($mimg,-8) == '.youtube')
|
||||
if(substr($mimg,-8) == '.youtube' || empty($mimg))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
e107::meta('og:image',$tp->thumbUrl($tmp[0],'w=500',false,true) );
|
||||
e107::meta('og:image',$tp->thumbUrl($mimg,'w=500',false,true) );
|
||||
// e107::meta('og:image',$mimg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user