From cf465cda3f92bbd93b7cd5fe9c1a69e199c245c0 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 6 Nov 2004 14:24:34 +0000 Subject: - minor fixes git-svn-id: file:///svn/phpbb/trunk@5024 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/viewtopic.php') 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() . " -- cgit v1.2.1