1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Make sure news author avatar has an image.

This commit is contained in:
Cameron
2021-10-02 13:02:28 -07:00
parent 80294ba65b
commit 9aa6d16f2c

View File

@@ -628,10 +628,8 @@ class news_shortcodes extends e_shortcode
function sc_news_author_avatar($parm=null) 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); return e107::getParser()->toAvatar($this->news_item, $parm);
} }
} }