Skip to content

Commit

Permalink
Error template does not have error variable defined outside of debug …
Browse files Browse the repository at this point in the history
…mode

Signed-off-by: Aleksei Khudiakov <[email protected]>
  • Loading branch information
Xerkus committed Jun 11, 2024
1 parent e0850c8 commit 2e93009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/error/error.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<a href="/chat">contact us via chat</a>.
</p>

<?php if ($error) : ?>
<?php if (! empty($error)) : ?>
<pre><?= $this->e($error) ?></pre>
<?php endif ?>
</section>

0 comments on commit 2e93009

Please sign in to comment.