From 953b92ba0a5b62214bc5d7d5cadc94b95533d39a Mon Sep 17 00:00:00 2001 From: reg2005 Date: Mon, 20 Jun 2016 16:18:39 +0300 Subject: [PATCH] Critical bugFix in themeData.php Additional check is added, without it there is a critical error "Call to a member function hasCustomData() on null" --- modules/cms/models/ThemeData.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/cms/models/ThemeData.php b/modules/cms/models/ThemeData.php index 52bc2337c..1df32f0b5 100644 --- a/modules/cms/models/ThemeData.php +++ b/modules/cms/models/ThemeData.php @@ -207,6 +207,11 @@ class ThemeData extends Model public static function applyAssetVariablesToCombinerFilters($filters) { $theme = CmsTheme::getActiveTheme(); + + if(!$theme){ + return; + } + if (!$theme->hasCustomData()) { return; }