summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-23 09:40:15 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-23 09:40:15 +0100
commit43641d917bccf135092521ebc972d4b57d9fba09 (patch)
tree4fad65c30f3b7d7f6bb525aa17b3a6ce9bf9e6f4 /lib
parentf63b09facae0e70010cc675aee960d4a0f826078 (diff)
downloadnextcloud-server-43641d917bccf135092521ebc972d4b57d9fba09.tar.gz
nextcloud-server-43641d917bccf135092521ebc972d4b57d9fba09.zip
Use "off" and "off" instead of true booleans
Apparently a boolean in php.ini is according to the documentation "on" or "off"… Fixes itself.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/util.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index c4e137ea48e..652566be4bc 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -638,8 +638,11 @@ class OC_Util {
$webServerRestart = true;
}
foreach($invalidIniSettings as $setting) {
+ if(is_bool($setting[1])) {
+ $setting[1] = ($setting[1]) ? 'on' : 'off';
+ }
$errors[] = [
- 'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], $setting[1]]),
+ 'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], var_export($setting[1], true)]),
'hint' => $l->t('Adjusting this setting in php.ini will make ownCloud run again')
];
$webServerRestart = true;