diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-07-25 00:22:46 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-07-25 00:22:46 +0200 |
commit | d9a62a7333a4476634212261f4d334c3d8d00831 (patch) | |
tree | 7b0c0c1cb79943504e4101430a7f72c98457716c /phpBB/viewforum.php | |
parent | 8064d2931fd5d64acb9e941f107668f4e7b20e92 (diff) | |
download | forums-d9a62a7333a4476634212261f4d334c3d8d00831.tar forums-d9a62a7333a4476634212261f4d334c3d8d00831.tar.gz forums-d9a62a7333a4476634212261f4d334c3d8d00831.tar.bz2 forums-d9a62a7333a4476634212261f4d334c3d8d00831.tar.xz forums-d9a62a7333a4476634212261f4d334c3d8d00831.zip |
[ticket/12881] Checks earlier if server-side topic marking is enabled
PHPBB3-12881
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r-- | phpBB/viewforum.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index c9623293c6..9086feb390 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -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 . ' |