Problem/Motivation
When the config is empty we get white screen of death on search and "TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in search_exclude_nid_query_search_node_search_alter()"
Steps to reproduce
- Add nids to the config, then remove those nids.
- Try to trigger a search
=> php error
Proposed resolution
Add no empty before count
Issue fork search_exclude_nid-3554495
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
benellefimostfa commentedComment #5
stefan lehmannThank you Mustapha! Just merged and made a release and all from the couch on my phone. :-)
It all looked straight forward enough.
Comment #6
stefan lehmannComment #8
benellefimostfa commentedWow ! that was quick, thank you Stefan.