2) Refactor App->config[] into Core\PConfig

This commit is contained in:
Philipp Holzer
2019-02-03 19:05:44 +01:00
parent d43a8184f4
commit f40c57fc20
2 changed files with 6 additions and 2 deletions

View File

@@ -203,7 +203,11 @@ class PConfig extends BaseObject
self::$config[$uid][$cat] = [];
}
self::$config[$uid][$cat][$k] = $value;
if ($k === null) {
self::$config[$uid][$cat] = $value;
} else {
self::$config[$uid][$cat][$k] = $value;
}
}
/**