[advancedcontentfilter] Fix PHP Warning: Invalid argument supplied for foreach

This commit is contained in:
Hypolite Petovan 2018-05-01 08:39:15 -04:00
parent b0dba96b0d
commit ea9ec0dadf

View file

@ -118,6 +118,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
)); ));
} }
if ($rules) {
foreach($rules as $rule) { foreach($rules as $rule) {
try { try {
$serializedParsedExpression = new ExpressionLanguage\SerializedParsedExpression( $serializedParsedExpression = new ExpressionLanguage\SerializedParsedExpression(
@ -136,6 +137,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
} }
} }
} }
}
function advancedcontentfilter_addon_settings(App $a, &$s) function advancedcontentfilter_addon_settings(App $a, &$s)