mirror of
https://github.com/e107inc/e107.git
synced 2025-06-09 04:28:29 +02:00
Issue #2101 - Fixes for fatal error on subforum pages.
This commit is contained in:
parent
b8cfac8dd7
commit
50c78c65b5
@ -533,7 +533,8 @@
|
|||||||
|
|
||||||
function subinfo()
|
function subinfo()
|
||||||
{
|
{
|
||||||
$caller = debug_backtrace()[1]['function'];
|
$backtrace = debug_backtrace();
|
||||||
|
$caller = $backtrace[1]['function'];
|
||||||
if($this->var['forum_lastpost_info'])
|
if($this->var['forum_lastpost_info'])
|
||||||
{
|
{
|
||||||
// global $gen;
|
// global $gen;
|
||||||
@ -654,7 +655,8 @@
|
|||||||
|
|
||||||
function threadlastpostdata()
|
function threadlastpostdata()
|
||||||
{
|
{
|
||||||
$caller = debug_backtrace()[1]['function'];
|
$backtrace = debug_backtrace();
|
||||||
|
$caller = $backtrace[1]['function'];
|
||||||
// if($this->var['thread_views'])
|
// if($this->var['thread_views'])
|
||||||
//($this->var['thread_total_replies']?:"0")
|
//($this->var['thread_total_replies']?:"0")
|
||||||
if($this->var['thread_views'] || $this->var['thread_total_replies'] > 0)
|
if($this->var['thread_views'] || $this->var['thread_total_replies'] > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user