The attached patch fixes two PHP notices, showing up for example when visiting the admin page admin/settings/filters/customfilter when no filters are defined.

CommentFileSizeAuthor
customfilter.patch1.18 KBgustav

Comments

avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

I tried it, and it works.

avpaderno’s picture

This will be one of the first commits I will make.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

I adapted the patch to the code how it is after my previous commits, and I used elseif (!empty($rule['function'])) { instead of elseif (isset($rule['function']) && $rule['function']) {.

Thanks for the report.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.