Fix fetching settings from env never falling to default

This commit is contained in:
James Brooks
2015-05-22 07:34:17 +01:00
parent 0be55c75c0
commit 8e2ab97dfa

View File

@@ -64,7 +64,9 @@ class Repository
// fallback to getenv if allowed to
if ($checkEnv) {
return $this->settings[$name] = env(strtoupper($name));
if ($this->settings[$name] = env(strtoupper($name))) {
return $this->settings[$name];
}
}
return $default;