Notice: Trying to access array offset on value of type bool in custom_search_theme() (line 705 of /code/sites/all/modules/custom_search/custom_search.module).

Created on 17 December 2021, over 2 years ago
Updated 28 February 2023, over 1 year ago

Problem/Motivation

When upgrading to PHP 7.4, the Custom Search module throws a notice on /update.php:
Notice: Trying to access array offset on value of type bool in custom_search_theme() (line 705 of /code/sites/all/modules/custom_search/custom_search.module).

Proposed resolution

Attached patch resolves notice.

🐛 Bug report
Status

RTBC

Version

1.20

Component

Code

Created by

🇺🇸United States Robert DeArmond

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Reupload a patch addressing only the affected parts since the last uploaded version wasn't applying for me.

  • First commit to issue fork.
  • 🇮🇳India urvashi_vora Madhya Pradesh, India

    Reviewed and tested the patch #5, works well for me as well.

    LGTM, RTBC++

    Committing the changes for helping the maintainer.

  • @urvashi_vora opened merge request.
Production build 0.69.0 2024