This commit is contained in:
Graham Campbell
2015-11-21 22:50:54 +00:00
parent 6f1d0ceda4
commit f5b6aa42b6
2 changed files with 3 additions and 5 deletions

View File

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