Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To reproduce, activate the "Exclude specified items" filter but leave the "Exclude items" field blank. When visiting the search page you will see a bunch of Notice: Uninitialized string offset: 0 in FacetapiFilterExcludeItems->execute() (line 34 of plugins/facetapi/filter_exclude_specified_items.inc). notice errors. This is a bit of an edge case, but there should be enough defensive coding in place to prevent the error from occurring.
Comments
Comment #1
danielnolde CreditAttribution: danielnolde commentedFIXED.
Strangely, i didn't get notices, even with E_ALL error level set explicitely - but they should appear, since the reason for the notices are clearly there in the code.
An additionally checked condition should now avoid the notices.