summaryrefslogtreecommitdiffstats
path: root/lib/private/Config.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-03-21 12:46:17 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-04-04 15:56:50 -0500
commit95a21e2f2a7515be1d91d3f70db9cf821f872294 (patch)
tree449418a967ca1f397dad6008ba6164afb7e4e9ac /lib/private/Config.php
parent0fcb37adcb08e8a74d712ff8a6146f91fa14d7a9 (diff)
downloadnextcloud-server-95a21e2f2a7515be1d91d3f70db9cf821f872294.tar.gz
nextcloud-server-95a21e2f2a7515be1d91d3f70db9cf821f872294.zip
Check for boolean false and add tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Config.php')
-rw-r--r--lib/private/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Config.php b/lib/private/Config.php
index 79742026660..f15854b6113 100644
--- a/lib/private/Config.php
+++ b/lib/private/Config.php
@@ -86,7 +86,7 @@ class Config {
*/
public function getValue($key, $default = null) {
$envValue = getenv(self::ENV_PREFIX . $key);
- if ($envValue) {
+ if ($envValue !== false) {
return $envValue;
}