curl_params should never be null (fixes #62)
This commit is contained in:
parent
a57a493742
commit
ae241a9812
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue