1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-21 04:49:51 +01:00

Merge pull request #3600 from Jimmi08/patch-8

Fixes #3338 - marked more than one forum as read
This commit is contained in:
Cameron 2019-01-06 11:06:00 -08:00 committed by GitHub
commit 42c2e42dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}