diff options
author | Cesar G <prototech91@gmail.com> | 2013-10-16 23:50:23 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2013-10-16 23:56:45 -0700 |
commit | 403da5d38d7feb1fd65e40c9907dd922f4401c90 (patch) | |
tree | 123b08b28d6aac9895aaabe2e426ca8295d3b4d9 | |
parent | 852b707b48cef513318d52db1d2a5f40621636d6 (diff) | |
download | forums-403da5d38d7feb1fd65e40c9907dd922f4401c90.tar forums-403da5d38d7feb1fd65e40c9907dd922f4401c90.tar.gz forums-403da5d38d7feb1fd65e40c9907dd922f4401c90.tar.bz2 forums-403da5d38d7feb1fd65e40c9907dd922f4401c90.tar.xz forums-403da5d38d7feb1fd65e40c9907dd922f4401c90.zip |
[ticket/11280] Prevent duplicate entry in forums_track table.
Enforcing a time limit prevents all rows from being selected, thus a new row
is inserted resulting in a duplicate entry.
PHPBB3-11280
-rw-r--r-- | phpBB/includes/functions.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ad5e3c05ce..c88e78c91f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1478,7 +1478,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $ $sql = 'SELECT forum_id FROM ' . FORUMS_TRACK_TABLE . " WHERE user_id = {$user->data['user_id']} - AND mark_time < $post_time AND " . $db->sql_in_set('forum_id', $forum_id); $result = $db->sql_query($sql); |