mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:02:54 +00:00
Fix "null" addon list
This commit is contained in:
parent
2293ff6206
commit
5ea50a9e81
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue