mirror of
https://github.com/e107inc/e107.git
synced 2025-03-21 04:49:51 +01:00
Fix #3338 - marked more than one forum as read
Because $currentUser['user_plugin_forum_viewed'] is not refreshed after adding one thread, it's still the same and only last thread is changed
This commit is contained in:
parent
e44fc0c13a
commit
3b158218cf
@ -1586,6 +1586,7 @@ class e107forum
|
||||
$tmp = array_unique($_tmp);
|
||||
// issue #3338 fixed typo, that caused issue with not marking threads are read
|
||||
$viewed = trim(implode(',', $tmp), ',');
|
||||
$currentUser['user_plugin_forum_viewed'] = $viewed;
|
||||
return e107::getDb()->update('user_extended', "user_plugin_forum_viewed = '{$viewed}' WHERE user_extended_id = ".USERID);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user