]> source.dussan.org Git - nextcloud-server.git/commitdiff
Manual backport of "Check if debugMode is defined before using it" #21657 21661/head
authortimm2k <timm2k@gmx.de>
Fri, 3 Jul 2020 06:15:40 +0000 (08:15 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2020 06:15:40 +0000 (08:15 +0200)
core/templates/exception.php

index fcfa8687710e3bd3e3de9319f1627a7622575b2b..76266b03868c2e988719e66c8693cb7068d3cb60 100644 (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>