1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Merge pull request #2104 from lonalore/forum

Issue #2101 - Fixes for fatal error on subforum pages.
This commit is contained in:
Cameron
2016-12-03 20:52:12 -08:00
committed by GitHub

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)