fix: [UI] Show error only if it is not empty

pull/7432/head
Jakub Onderka 2021-05-24 14:02:01 +02:00
parent 34b0d85689
commit 5fd72bd5bf
1 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
<div class="misp-error-container">
<h2><?php echo $name; ?></h2>
<?php if (!empty($message)): ?>
<p class="error">
<strong><?php echo __('Error'); ?>: </strong>
<?php printf(__('%s', true), "{$message}"); ?>
<strong><?= __('Error'); ?>:</strong>
<?= $message; ?>
</p>
<?php endif; ?>
</div>