Skip to content

Commit

Permalink
Fix processing of presets
Browse files Browse the repository at this point in the history
The presets were not read in from config.inc.php after the refactoring
to improve type analysis (7d9a056).
  • Loading branch information
mstilkerich committed Feb 26, 2021
1 parent c481b18 commit ba61817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions carddav.php
Expand Up @@ -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());
}
Expand Down

0 comments on commit ba61817

Please sign in to comment.