Skip to content

Commit

Permalink
Update forum.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Oct 5, 2024
1 parent 5c79432 commit 184442f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions e107_plugins/forum/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function forum_track()
$tp = e107::getParser();

$trackDiz = ($trackEmailPref) ? LAN_FORUM_3040 : LAN_FORUM_3041;

$text = '';
// if($trackedThreadList = $forum->getTrackedThreadList(USERID, 'list')) //$trackedThreadList is not used anywhere in function, so why declare it?
if($forum->getTrackedThreadList(USERID, 'list'))

Expand Down Expand Up @@ -477,15 +477,19 @@ function forum_track()
}
// else
{
$tracktext = $forum_track_start . $forum_trackstring . $forum_track_end;
$text = $forum_track_start . $forum_trackstring . $forum_track_end;
}
}


$text = '';

// $text = '';
if(!$text)
{
e107::redirect();
exit;
}

$text .= $tracktext;
// $text .= $tracktext;
$text .= "<div class='center'>" . e107::getForm()->pagination(e107::url('forum', 'index'), LAN_BACK) . "</div>";


Expand Down

0 comments on commit 184442f

Please sign in to comment.