check if message exists

This commit is contained in:
tracer 2022-10-30 16:03:44 +01:00
parent 3ff406d053
commit 1dc31bcb1b
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<script src="/assets/js/functions.js"></script> <script src="/assets/js/functions.js"></script>
<?php if ($message): ?> <?php if (!empty($message)): ?>
<script>setError('<?= $message ?>')</script> <script>setError('<?= $message ?>')</script>
<?php endif; ?> <?php endif; ?>