Fix possible race-condition in using current folder

pull/248/head
Aleksander Machniak 10 years ago
parent 01bc27536a
commit cc6c7e83b5

@ -178,7 +178,7 @@ else
// mark message as read
if (!empty($set_seen_flag)) {
if ($RCMAIL->storage->set_flag($MESSAGE->uid, 'SEEN')) {
if ($RCMAIL->storage->set_flag($MESSAGE->uid, 'SEEN', $mbox_name)) {
if ($count = rcmail_get_unseen_count($mbox_name)) {
rcmail_set_unseen_count($mbox_name, $count - 1);
}

Loading…
Cancel
Save