Automatic conversion of false to array is deprecated

Created on 19 October 2022, over 1 year ago
Updated 16 April 2023, about 1 year ago

Problem/Motivation

Error logged on loading /admin/content page after upgrade to PHP 8.1.0:

Deprecated function: Automatic conversion of false to array is deprecated in view_unpublished_user_perms() (line 225 of /xxx/xxx/public_html/sites/all/modules/view_unpublished/view_unpublished.module).

Steps to reproduce

PHP 8.1.0
Drupal core 7.92
view_unpublished 7.x-1.2

Proposed resolution

Declare $perms variable as an array.

Remaining tasks

Patch forthcoming when I can get an issue number.

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rclemings

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.

Production build 0.69.0 2024