diff --git a/app/Purifier.php b/app/Purifier.php index d26e506ddb1..65fcd91cc49 100644 --- a/app/Purifier.php +++ b/app/Purifier.php @@ -591,7 +591,7 @@ public static function bool($value) */ public static function encodeHtml($string) { - return htmlspecialchars($string, ENT_QUOTES, static::$defaultCharset); + return htmlspecialchars($string ?? '', ENT_QUOTES, static::$defaultCharset); } /** diff --git a/layouts/basic/modules/Settings/Menu/types/Module.tpl b/layouts/basic/modules/Settings/Menu/types/Module.tpl index c9a92e5a286..31dcd630f6b 100644 --- a/layouts/basic/modules/Settings/Menu/types/Module.tpl +++ b/layouts/basic/modules/Settings/Menu/types/Module.tpl @@ -18,14 +18,16 @@ {include file=\App\Layout::getTemplatePath('fields/Newwindow.tpl', $QUALIFIED_MODULE)} {include file=\App\Layout::getTemplatePath('fields/Hotkey.tpl', $QUALIFIED_MODULE)} - {assign var=FILTERS value=explode(',',$RECORD->get('filters'))} + {if !$RECORD->isEmpty('filters')} + {assign var=FILTERS value=explode(',',$RECORD->get('filters'))} + {/if}