From ba6181722396eb68bac3ea53562275759935d4c3 Mon Sep 17 00:00:00 2001 From: Michael Stilkerich Date: Fri, 26 Feb 2021 20:19:53 +0100 Subject: [PATCH] Fix processing of presets The presets were not read in from config.inc.php after the refactoring to improve type analysis (7d9a056e8f24ce57f06e6210f161df6639329e47). --- carddav.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/carddav.php b/carddav.php index eec30f93..2b06fd42 100644 --- a/carddav.php +++ b/carddav.php @@ -1220,6 +1220,9 @@ private function addPreset(string $presetname, array $preset): void } } } + + /** @var Preset */ + $this->presets[$presetname] = $result; } catch (\Exception $e) { $logger->error("Error in preset $presetname: " . $e->getMessage()); }