curl_params should never be null (fixes #62)

This commit is contained in:
Pierre Rudloff 2016-07-27 13:11:38 +02:00
parent a57a493742
commit ae241a9812

View file

@ -47,7 +47,7 @@ class Config
$yaml = Yaml::parse(file_get_contents($yamlfile)); $yaml = Yaml::parse(file_get_contents($yamlfile));
if (isset($yaml) && is_array($yaml)) { if (isset($yaml) && is_array($yaml)) {
foreach ($yaml as $param => $value) { foreach ($yaml as $param => $value) {
if (isset($this->$param)) { if (isset($this->$param) && isset($value)) {
$this->$param = $value; $this->$param = $value;
} }
} }