diff --git a/classes/Config.php b/classes/Config.php index 8625585..c0c5325 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -39,9 +39,11 @@ Class Config private function __construct() { $yaml = Yaml::parse(__DIR__.'/../config.yml'); - foreach ($yaml as $param=>$value) { - if (isset($this->$param)) { - $this->$param = $value; + if (isset($yaml) && is_array($yaml)) { + foreach ($yaml as $param=>$value) { + if (isset($this->$param)) { + $this->$param = $value; + } } } if (getenv('CONVERT')) {