PHP Warnings array offset

Created on 13 July 2023, over 1 year ago

Problem/Motivation

After moving this module to PHP 8.x I see the following error in my logs.

Warning: Trying to access array offset on value of type bool in restrict_page_ip_boot() (line 69 of
... /sites/all/modules/restrict_page_ip/restrict_page_ip.module)."
"

Steps to reproduce

Install on a system with PHP 8.x

Proposed resolution

Attached is a patch than may help resolve the warnings.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sgroundwater

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

Comments & Activities

Production build 0.71.5 2024