diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-02 15:46:59 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-02 15:46:59 +0200 |
commit | ac3137a16600a68fa7f6fde462be0cd197bd79ed (patch) | |
tree | f1b9bff1c5b3d537441d234f3e0881cf00b9d883 /core | |
parent | 0157e30ad4281d65818ac0f0e08f990aa145ca95 (diff) | |
download | nextcloud-server-ac3137a16600a68fa7f6fde462be0cd197bd79ed.tar.gz nextcloud-server-ac3137a16600a68fa7f6fde462be0cd197bd79ed.zip |
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')
-rw-r--r-- | core/templates/exception.php | 2 |
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> |