mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-04 10:24:42 +02:00
[Web] Fix some empty responses in alert box
This commit is contained in:
parent
2dfcfd16d0
commit
d6eb21f7a6
@ -695,6 +695,9 @@ function alertbox_log_parser($_data) {
|
||||
if (isset($lang[$return['type']][$return['msg']])) {
|
||||
$msg = $lang[$return['type']][$return['msg']];
|
||||
}
|
||||
else {
|
||||
$msg = $return['msg'];
|
||||
}
|
||||
}
|
||||
// If msg is an array, use first element as language string and run printf on it with remaining array elements
|
||||
elseif (is_array($return['msg'])) {
|
||||
@ -704,9 +707,8 @@ function alertbox_log_parser($_data) {
|
||||
$return['msg']
|
||||
);
|
||||
}
|
||||
// If none applies, use msg as returned message
|
||||
else {
|
||||
$msg = $return['msg'];
|
||||
$msg = '-';
|
||||
}
|
||||
$log_array[] = array('msg' => $msg, 'type' => json_encode($type));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user