Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-07-02 16:46:59 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-07-02 16:46:59 +0300
commitac3137a16600a68fa7f6fde462be0cd197bd79ed (patch)
treef1b9bff1c5b3d537441d234f3e0881cf00b9d883 /core/templates
parent0157e30ad4281d65818ac0f0e08f990aa145ca95 (diff)
Check if debugMode is defined before using it
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>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/exception.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/exception.php b/core/templates/exception.php
index a2b019b3289..f0bf171be64 100644
--- a/core/templates/exception.php
+++ b/core/templates/exception.php
@@ -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>