aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-08-12 15:02:04 +0000
committerNils Adermann <naderman@naderman.de>2006-08-12 15:02:04 +0000
commitef71892edd1bb6b4e06fa207172ba8a3ee5f40b3 (patch)
treee7be1fce99be4124e0db8ba8a90da4819f428de1
parentb3b09186feebaac20dba8789d6bd50168cd4ab6b (diff)
downloadforums-ef71892edd1bb6b4e06fa207172ba8a3ee5f40b3.tar
forums-ef71892edd1bb6b4e06fa207172ba8a3ee5f40b3.tar.gz
forums-ef71892edd1bb6b4e06fa207172ba8a3ee5f40b3.tar.bz2
forums-ef71892edd1bb6b4e06fa207172ba8a3ee5f40b3.tar.xz
forums-ef71892edd1bb6b4e06fa207172ba8a3ee5f40b3.zip
- casting to int so this won't throw any unwanted errors
git-svn-id: file:///svn/phpbb/trunk@6274 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 46785158a5..64a203e0bf 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -666,8 +666,8 @@ class session
if ($row['session_user_id'] != ANONYMOUS)
{
$sql = 'UPDATE ' . USERS_TABLE . '
- SET user_lastvisit = ' . $row['recent_time'] . ", user_lastpage = '" . $db->sql_escape($row['session_page']) . "'
- WHERE user_id = " . $row['session_user_id'];
+ SET user_lastvisit = ' . (int) $row['recent_time'] . ", user_lastpage = '" . $db->sql_escape($row['session_page']) . "'
+ WHERE user_id = " . (int) $row['session_user_id'];
$db->sql_query($sql);
}