Skip to content

Commit ce2ef92

Browse files
committed
fix: ensure $error is actually set, not just empty
The variable is undefined when debug is off, which means that this template itself results in an error. Changed conditional to use `isset()` instead. Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
1 parent 12fe619 commit ce2ef92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/error/error.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<a href="/chat">contact us via chat</a>.
1010
</p>
1111

12-
<?php if (! empty($error)) : ?>
12+
<?php if (isset($error)) : ?>
1313
<pre><?= $this->e($error) ?></pre>
1414
<?php endif ?>
1515
</section>

0 commit comments

Comments
 (0)