]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if debugMode is defined before using it 21657/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 2 Jul 2020 13:46:59 +0000 (15:46 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 2 Jul 2020 13:46:59 +0000 (15:46 +0200)
Else the sabre error page (where the var is not defined) will throw
warnings all the time.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
core/templates/exception.php

index a2b019b32897a663563a07a294e345b9baf33559..f0bf171be648f8a86c30cf431187baea60c8bc2c 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>