mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Make sure news author avatar has an image.
This commit is contained in:
@@ -628,10 +628,8 @@ class news_shortcodes extends e_shortcode
|
||||
|
||||
function sc_news_author_avatar($parm=null)
|
||||
{
|
||||
if(!empty($this->news_item['user_id']))
|
||||
if(!empty($this->news_item['user_id']) && !empty($this->news_item['user_image']))
|
||||
{
|
||||
|
||||
|
||||
return e107::getParser()->toAvatar($this->news_item, $parm);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user