Commit 052455c6 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[BUGFIX] The layout source is returning null, but must be of type Layout

parent 2c18c073
......@@ -1028,9 +1028,9 @@ class MailTemplateService {
*
* @param int $layoutUid
* @param int $siteRootId
* @return Layout
* @return Layout|NULL
*/
private function getLayoutSource(int $layoutUid, int $siteRootId): Layout {
private function getLayoutSource(int $layoutUid, int $siteRootId): ?Layout {
$languageUid = 0;
if ($this->language !== self::DEFAULT_LANGUAGE) {
$languageUid = (int) array_search($this->language, $this->getAvailableLanguages(), TRUE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment