1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-08 03:45:03 +02:00

Issue #2101 - Fixes for fatal error on subforum pages.

This commit is contained in:
Lóna Lore 2016-12-03 22:07:11 +01:00
parent b8cfac8dd7
commit 50c78c65b5

View File

@ -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)