From ae241a9812385c0240523525193111c6efecdbe8 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 27 Jul 2016 13:11:38 +0200 Subject: [PATCH] curl_params should never be null (fixes #62) --- classes/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Config.php b/classes/Config.php index cd8dea1..c7befdf 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -47,7 +47,7 @@ class Config $yaml = Yaml::parse(file_get_contents($yamlfile)); if (isset($yaml) && is_array($yaml)) { foreach ($yaml as $param => $value) { - if (isset($this->$param)) { + if (isset($this->$param) && isset($value)) { $this->$param = $value; } }