mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
- minor fixes
git-svn-id: file:///svn/phpbb/trunk@5024 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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() . "
|
||||
|
Reference in New Issue
Block a user