Fix "null" addon list

This commit is contained in:
Philipp 2023-01-08 02:28:47 +01:00
parent 2293ff6206
commit 5ea50a9e81
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

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