From ec8108338b5cb091e05d19e6eb110b6eaea93748 Mon Sep 17 00:00:00 2001 From: Jimako Date: Tue, 29 Mar 2022 10:47:58 +0200 Subject: [PATCH] correct display of Last Post info #FIX 4715 --- .../forum/shortcodes/batch/viewforum_shortcodes.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index a1f4f23e54..78ed922e39 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -501,6 +501,11 @@ function sc__wrapper_() // TODO XXX ?? function subinfo() { + if(empty($this->var['thread_total_replies'])) + { + return ''; + } + $backtrace = debug_backtrace(); $caller = $backtrace[1]['function']; if($this->var['forum_lastpost_info']) @@ -622,6 +627,11 @@ function sc_repliesx($parm='') function threadlastpostdata() { + if(empty($this->var['thread_total_replies'])) + { + return ''; + } + $backtrace = debug_backtrace(); $caller = $backtrace[1]['function']; // if($this->var['thread_views'])