[web] fix annoucements and notifications close #4292

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
Kristian Feldsam
2021-10-15 17:18:26 +02:00
parent 627e9dae7b
commit 40b5ed4d72
3 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ $alertbox_log_parser = alertbox_log_parser($_SESSION);
$alerts = [];
if (is_array($alertbox_log_parser)) {
foreach ($alertbox_log_parser as $log) {
$alert[$log['type']][] = $log['msg'];
$alerts[trim($log['type'], '"')][] = trim($log['msg'], '"');
}
$alert = array_filter(array_unique($alerts));
foreach($alert as $alert_type => $alert_msg) {