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)