mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/8796] Revert changes to $user->data['lastmark']
The earlier change might change the way some things work (after looking at viewtopic) and I'd rather not risk introducing new bugs, so I'm going to revert those changes to be safe. PHPBB3-8796
This commit is contained in:
@@ -1314,8 +1314,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
||||
WHERE user_id = {$user->data['user_id']}
|
||||
AND mark_time < $post_time";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$user->data['user_lastmark'] = $post_time;
|
||||
}
|
||||
else if ($config['load_anon_lastread'] || $user->data['is_registered'])
|
||||
{
|
||||
@@ -1339,8 +1337,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
||||
WHERE user_id = {$user->data['user_id']}
|
||||
AND mark_time < $post_time";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$user->data['user_lastmark'] = $post_time;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1524,13 +1520,13 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
||||
|
||||
if ($user->data['is_registered'])
|
||||
{
|
||||
$user->data['user_lastmark'] = intval(base_convert(max($time_keys) + $config['board_startdate'], 36, 10));
|
||||
|
||||
$sql = 'UPDATE ' . USERS_TABLE . "
|
||||
SET user_lastmark = $post_time
|
||||
WHERE user_id = {$user->data['user_id']}
|
||||
AND mark_time < $post_time";
|
||||
$db->sql_query($sql);
|
||||
|
||||
$user->data['user_lastmark'] = $post_time;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user