public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Web] Fix some empty responses in alert box
d6eb21f7
data/web/inc/functions.inc.php | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Diff
diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php
index c6642418..142a9fed 100644
--- a/data/web/inc/functions.inc.php
+++ b/data/web/inc/functions.inc.php
@@ -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));
}