diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-23 09:40:15 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-23 09:40:15 +0100 |
commit | 43641d917bccf135092521ebc972d4b57d9fba09 (patch) | |
tree | 4fad65c30f3b7d7f6bb525aa17b3a6ce9bf9e6f4 /lib | |
parent | f63b09facae0e70010cc675aee960d4a0f826078 (diff) | |
download | nextcloud-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.php | 5 |
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; |