From 9aa6d16f2c7bf262694402be5d6470a27e241ba6 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 2 Oct 2021 13:02:28 -0700 Subject: [PATCH] Make sure news author avatar has an image. --- e107_core/shortcodes/batch/news_shortcodes.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index cbd7e1fc3..c127d44b3 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -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); } }