diff --git a/src/main.php b/src/main.php index b12d0e7..3cea790 100644 --- a/src/main.php +++ b/src/main.php @@ -87,9 +87,11 @@ public function __construct($config=[]) { // load config from environment variables foreach (array_keys($this->config) as $key) { if (($value = getenv('IFM_' . strtoupper($key))) !== false) { - if (is_numeric($value)) - $value = intval($value); - $this->config[$key] = trim($value, implode(['"', "'"])); // remove quotes from env vars + if (is_numeric($value)) { + $this->config[$key] = intval($value); + } else { + $this->config[$key] = trim($value, implode(['"', "'"])); // remove quotes from env vars + } } }