From 79c8f1c6698d0360f6a72da6b37d65b07e3b42af Mon Sep 17 00:00:00 2001 From: rommmka Date: Thu, 21 Jul 2022 12:14:14 +0300 Subject: [PATCH] Fixed error when themes are removed --- Plugin/Framework/LayoutMerge.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plugin/Framework/LayoutMerge.php b/Plugin/Framework/LayoutMerge.php index 09fe8f6..7f859e6 100644 --- a/Plugin/Framework/LayoutMerge.php +++ b/Plugin/Framework/LayoutMerge.php @@ -66,7 +66,11 @@ private function getLayoutLinkIds() $editor = $this->helper->getThemeEditorCode(); if ($editor) { - $this->layoutLinkIds = $this->collectLayoutLinkIds($this->helper->getConfigValue($editor)); + $config = $this->helper->getConfigValue($editor); + + if ($config) { + $this->layoutLinkIds = $this->collectLayoutLinkIds($config); + } } return $this->layoutLinkIds;