diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-09-03 18:58:38 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-09-03 18:58:38 -0500 |
commit | fccbf09e4aa9034afba5d5992d773b209f59bba7 (patch) | |
tree | f2131a62972c4ddf0f8cd2a39eee04624de810b5 /phpBB/includes/functions.php | |
parent | 9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1 (diff) | |
download | forums-fccbf09e4aa9034afba5d5992d773b209f59bba7.tar forums-fccbf09e4aa9034afba5d5992d773b209f59bba7.tar.gz forums-fccbf09e4aa9034afba5d5992d773b209f59bba7.tar.bz2 forums-fccbf09e4aa9034afba5d5992d773b209f59bba7.tar.xz forums-fccbf09e4aa9034afba5d5992d773b209f59bba7.zip |
[ticket/8796] Fix a few issues with the previous commits
Fix an SQL error and the redirect url generated
PHPBB3-8796
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 26b73e20fe..13cb15d73d 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1305,14 +1305,14 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $ { $sql = 'DELETE FROM ' . $table . " WHERE user_id = {$user->data['user_id']} - AND mark_time < . $post_time"; + AND mark_time < $post_time"; $db->sql_query($sql); } $sql = 'UPDATE ' . USERS_TABLE . " SET user_lastmark = $post_time WHERE user_id = {$user->data['user_id']} - AND mark_time < $post_time"; + AND user_lastmark < $post_time"; $db->sql_query($sql); } else if ($config['load_anon_lastread'] || $user->data['is_registered']) @@ -1335,7 +1335,7 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $ $sql = 'UPDATE ' . USERS_TABLE . " SET user_lastmark = $post_time WHERE user_id = {$user->data['user_id']} - AND mark_time < $post_time"; + AND user_lastmark < $post_time"; $db->sql_query($sql); } } |