diff options
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index f7e46467b8..60683da22c 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1306,7 +1306,7 @@ unset($user_cache); // Update topic view and if necessary attachment view counters ... but only // if this is the first 'page view' -if (!preg_match("#&t=$topic_id#", $user->data['session_page'])) +if (isset($user->data['session_page']) && !preg_match("#&t=$topic_id#", $user->data['session_page'])) { $sql = 'UPDATE ' . TOPICS_TABLE . ' SET topic_views = topic_views + 1, topic_last_view_time = ' . time() . " |
