aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php
index 86005a96954..e0ec23151e3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -569,7 +569,7 @@ class OC {
self::sendSameSiteCookies();
// Debug mode gets access to the resources without strict cookie
// due to the fact that the SabreDAV browser also lives there.
- if (!$config->getSystemValue('debug', false)) {
+ if (!$config->getSystemValueBool('debug', false)) {
http_response_code(\OCP\AppFramework\Http::STATUS_SERVICE_UNAVAILABLE);
exit();
}
@@ -672,7 +672,7 @@ class OC {
\OCP\Server::get(\Psr\Log\LoggerInterface::class),
);
$exceptionHandler = [$errorHandler, 'onException'];
- if ($config->getSystemValue('debug', false)) {
+ if ($config->getSystemValueBool('debug', false)) {
set_error_handler([$errorHandler, 'onAll'], E_ALL);
if (\OC::$CLI) {
$exceptionHandler = ['OC_Template', 'printExceptionErrorPage'];
@@ -733,7 +733,7 @@ class OC {
echo('Writing to database failed');
}
exit(1);
- } elseif (self::$CLI && $config->getSystemValue('installed', false)) {
+ } elseif (self::$CLI && $config->getSystemValueBool('installed', false)) {
$config->deleteAppValue('core', 'cronErrors');
}
}
@@ -803,7 +803,7 @@ class OC {
*/
if (!OC::$CLI
&& !Server::get(\OC\Security\TrustedDomainHelper::class)->isTrustedDomain($host)
- && $config->getSystemValue('installed', false)
+ && $config->getSystemValueBool('installed', false)
) {
// Allow access to CSS resources
$isScssRequest = false;