check if message exists

This commit is contained in:
tracer 2022-10-30 16:03:44 +01:00
parent 3ff406d053
commit 1dc31bcb1b

View File

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