From: Philipp Date: Sun, 8 Jan 2023 01:28:47 +0000 (+0100) Subject: Fix "null" addon list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ea50a9e81a7f363040d7c86a4a41b8a1f8f7758;p=friendica.git Fix "null" addon list --- diff --git a/src/Core/Config/ValueObject/Cache.php b/src/Core/Config/ValueObject/Cache.php index 7492d28734..61a65c3e70 100644 --- a/src/Core/Config/ValueObject/Cache.php +++ b/src/Core/Config/ValueObject/Cache.php @@ -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];