]> git.mxchange.org Git - friendica.git/commitdiff
Fix "null" addon list
authorPhilipp <admin@philipp.info>
Sun, 8 Jan 2023 01:28:47 +0000 (02:28 +0100)
committerPhilipp <admin@philipp.info>
Sun, 8 Jan 2023 01:49:56 +0000 (02:49 +0100)
src/Core/Config/ValueObject/Cache.php

index 7492d287340143d0ae4f0c3b157ff646ddbd4aea..61a65c3e70ec1ada561e06c02f8d6aa7f106a017 100644 (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];