Manual backport of "Check if debugMode is defined before using it" #21657

This commit is contained in:
timm2k 2020-07-03 08:15:40 +02:00 committed by GitHub
parent b44a9ea10d
commit 21b66783d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ style('core', ['styles', 'header']);
<ul>
<li><?php p($l->t('Remote Address: %s', [$_['remoteAddr']])) ?></li>
<li><?php p($l->t('Request ID: %s', [$_['requestID']])) ?></li>
<?php if($_['debugMode']): ?>
<?php if (isset($_['debugMode']) && $_['debugMode'] === true): ?>
<li><?php p($l->t('Type: %s', [$_['errorClass']])) ?></li>
<li><?php p($l->t('Code: %s', [$_['errorCode']])) ?></li>
<li><?php p($l->t('Message: %s', [$_['errorMsg']])) ?></li>