Merge pull request #3526 from PEMapModder/patch-9

Fixed getNested() using cache desynchroinized from set()
This commit is contained in:
PEMapModder 2016-02-28 23:10:12 +08:00
commit ccadb5f2bb

View File

@ -327,6 +327,11 @@ class Config{
*/
public function set($k, $v = true){
$this->config[$k] = $v;
foreach($this->nestedCache as $nestedKey => $nvalue){
if(substr($nestedKey, 0, strlen($k) + 1) === ($k . ".")){
unset($this->nestedCache($nestedKey));
}
}
}
/**