mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 02:53:41 +00:00
[advancedcontentfilter] Fix PHP Warning: Invalid argument supplied for foreach
This commit is contained in:
parent
b0dba96b0d
commit
ea9ec0dadf
1 changed files with 15 additions and 13 deletions
|
@ -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(
|
||||
|
@ -136,6 +137,7 @@ function advancedcontentfilter_prepare_body_content_filter(App $a, &$hook_data)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function advancedcontentfilter_addon_settings(App $a, &$s)
|
||||
|
|
Loading…
Reference in a new issue