mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12881] Checks earlier if server-side topic marking is enabled
This commit is contained in:
commit
d4eec54686
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue