Fix Core\Config

Fix for adding a formatted array to an existing element
This commit is contained in:
Visman 2020-10-05 19:51:18 +07:00
parent 6ee99cdb89
commit e9381eaccf

View file

@ -335,7 +335,10 @@ class Config
) {
$config[] = $value;
} elseif (isset($config[$key])) {
if ($this->isFormat($config[$key])) {
if (
$this->isFormat($config[$key])
&& ! $this->isFormat($value)
) {
$config[$key]['value'] = $value;
} else {
$config[$key] = $value;