1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02: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:
Jimako
2019-01-06 13:48:56 +01:00
committed by GitHub
parent e44fc0c13a
commit 3b158218cf

View File

@@ -1586,6 +1586,7 @@ class e107forum
$tmp = array_unique($_tmp); $tmp = array_unique($_tmp);
// issue #3338 fixed typo, that caused issue with not marking threads are read // issue #3338 fixed typo, that caused issue with not marking threads are read
$viewed = trim(implode(',', $tmp), ','); $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); return e107::getDb()->update('user_extended', "user_plugin_forum_viewed = '{$viewed}' WHERE user_extended_id = ".USERID);
} }