From 9315f0c6de183eeeef620d21cab393f88b8fce5e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 2 Sep 2013 17:24:45 +0200 Subject: typecast config values to default values of config object --- utility/config.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utility') diff --git a/utility/config.php b/utility/config.php index 7841b3f5f..54145c993 100644 --- a/utility/config.php +++ b/utility/config.php @@ -119,6 +119,8 @@ class Config { foreach($configValues as $key => $value) { if(property_exists($this, $key)) { + $type = gettype($this->$key); + settype($value, $type); $this->$key = $value; } else { $this->api->log('Configuration value "' . $key . -- cgit v1.2.3