mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 22:51:23 +02:00
Merge pull request #2777 from Nicofuma/ticket/12881
[ticket/12881] Debug error - Undefined index: mark_time * Nicofuma/ticket/12881: [ticket/12881] Checks earlier if server-side topic marking is enabled
This commit is contained in:
@@ -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 . '
|
||||
|
Reference in New Issue
Block a user