mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-17 14:18:24 +01:00
[ticket/12881] Checks earlier if server-side topic marking is enabled
PHPBB3-12881
This commit is contained in:
parent
8064d2931f
commit
d9a62a7333
@ -469,11 +469,11 @@ if ($forum_data['forum_type'] == FORUM_POST)
|
||||
|
||||
$forum_tracking_info = array();
|
||||
|
||||
if ($user->data['is_registered'])
|
||||
if ($user->data['is_registered'] && $config['load_db_lastread'])
|
||||
{
|
||||
$forum_tracking_info[$forum_id] = $forum_data['mark_time'];
|
||||
|
||||
if (!empty($global_announce_forums) && $config['load_db_lastread'])
|
||||
if (!empty($global_announce_forums))
|
||||
{
|
||||
$sql = 'SELECT forum_id, mark_time
|
||||
FROM ' . FORUMS_TRACK_TABLE . '
|
||||
|
Loading…
x
Reference in New Issue
Block a user