From 50c78c65b5956f8dfa9d2bb9a6df4db49bc619cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Sat, 3 Dec 2016 22:07:11 +0100 Subject: [PATCH] Issue #2101 - Fixes for fatal error on subforum pages. --- .../forum/shortcodes/batch/viewforum_shortcodes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index 1ee545882..a9016d13f 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -533,7 +533,8 @@ function subinfo() { - $caller = debug_backtrace()[1]['function']; + $backtrace = debug_backtrace(); + $caller = $backtrace[1]['function']; if($this->var['forum_lastpost_info']) { // global $gen; @@ -654,7 +655,8 @@ function threadlastpostdata() { - $caller = debug_backtrace()[1]['function']; + $backtrace = debug_backtrace(); + $caller = $backtrace[1]['function']; // if($this->var['thread_views']) //($this->var['thread_total_replies']?:"0") if($this->var['thread_views'] || $this->var['thread_total_replies'] > 0)