summaryrefslogtreecommitdiffstats
path: root/utility
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-02 17:24:45 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-02 17:24:45 +0200
commit9315f0c6de183eeeef620d21cab393f88b8fce5e (patch)
tree4ff30b4b3c6c42e8a984382f6a2be4166708b0c4 /utility
parentd4a2bb9d15bfeabf3473d5c3325a7aea6fb4be5b (diff)
typecast config values to default values of config object
Diffstat (limited to 'utility')
-rw-r--r--utility/config.php2
1 files changed, 2 insertions, 0 deletions
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 .