[advancedcontentfilter] Fix PHP Warning: Invalid argument supplied for foreach
parent
b0dba96b0d
commit
ea9ec0dadf
|
@ -118,6 +118,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
|
|||
));
|
||||
}
|
||||
|
||||
if ($rules) {
|
||||
foreach($rules as $rule) {
|
||||
try {
|
||||
$serializedParsedExpression = new ExpressionLanguage\SerializedParsedExpression(
|
||||
|
@ -135,6 +136,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue