Fix "null" addon list

This commit is contained in:
Philipp Holzer 2023-01-08 02:28:47 +01:00
parent 2293ff6206
commit 5ea50a9e81
Signed by: nupplaPhil
GPG Key ID: 24A7501396EB5432
1 changed files with 5 additions and 0 deletions

View File

@ -311,6 +311,11 @@ class Cache
if (is_array($cache->config[$category])) {
$keys = array_keys($cache->config[$category]);
if (is_null($newConfig[$category] ?? null)) {
$newConfig[$category] = [];
$newSource[$category] = [];
}
foreach ($keys as $key) {
$newConfig[$category][$key] = $cache->config[$category][$key];
$newSource[$category][$key] = $cache->source[$category][$key];