Browse code

[webmail] BM-13156 Fix: Prevent to double check for unread messages in current folder

Arnaud Aujon Chevallier authored on 11/05/2018 13:48:47
Showing 1 changed files
... ...
@@ -51,6 +51,8 @@ class bm_checkperfolder extends rcube_plugin {
51 51
       }
52 52
       $_SESSION['bm']['checkperfolder'][$count] = ++$i;
53 53
     }
54
+    /* BM-13156 check that folders are unique here*/
55
+    $checked = array_unique($checked);
54 56
     $args['folders'] = array_filter($checked);
55 57
     return $args;
56 58
   }