Critical bugFix in themeData.php

Additional check is added, without it there is a critical error "Call to a member function hasCustomData() on null"
This commit is contained in:
reg2005 2016-06-20 16:18:39 +03:00 committed by GitHub
parent d7ef9b1738
commit 953b92ba0a

View File

@ -207,6 +207,11 @@ class ThemeData extends Model
public static function applyAssetVariablesToCombinerFilters($filters)
{
$theme = CmsTheme::getActiveTheme();
if(!$theme){
return;
}
if (!$theme->hasCustomData()) {
return;
}