mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-09 01:26:32 +02:00
fix tabs
This commit is contained in:
10
src/main.php
10
src/main.php
@@ -87,11 +87,11 @@ class IFM {
|
||||
// load config from environment variables
|
||||
foreach (array_keys($this->config) as $key) {
|
||||
if (($value = getenv('IFM_' . strtoupper($key))) !== false) {
|
||||
if (is_numeric($value)) {
|
||||
$this->config[$key] = intval($value);
|
||||
} else {
|
||||
$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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user