mirror of https://github.com/MISP/MISP
fix: [UI] Show error only if it is not empty
parent
34b0d85689
commit
5fd72bd5bf
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue