[Web] Fix shared alias displain in user view, fixes #2274

This commit is contained in:
andryyy 2019-02-07 22:37:26 +01:00
parent eb4c9f7a8b
commit a908b2da6e
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -132,7 +132,7 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
else {
foreach (array_filter($user_get_alias_details['direct_aliases']) as $direct_alias => $direct_alias_meta) {
(!empty($direct_alias_meta['public_comment'])) ?
printf('%s <small>(%s)</small><br>', $direct_alias, $direct_alias_meta['public_comment']) :
printf('%s &mdash; <span class="bg-info">%s</span><br>', $direct_alias, $direct_alias_meta['public_comment']) :
printf('%s<br>', $direct_alias);
}
}
@ -151,7 +151,8 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
else {
foreach (array_filter($user_get_alias_details['shared_aliases']) as $shared_alias => $shared_alias_meta) {
(!empty($shared_alias_meta['public_comment'])) ?
printf('%s <small>(%s)</small><br>', $shared_alias, $shared_alias_meta['public_comment']) :
printf('%s &mdash; <span class="bg-info">%s</span><br>', $shared_alias, $shared_alias_meta['public_comment']) :
printf('%s<br>', $shared_alias);
}
}