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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rclemings created an issue. See original summary.

rclemings’s picture

Status: Active » Needs review
FileSize
646 bytes

  • tobiasb committed cb202605 on 7.x-1.x authored by rclemings
    Issue #3316406 by rclemings: Automatic conversion of false to array is...
tobiasb’s picture

Status: Needs review » Fixed

Thx.

tobiasb’s picture

Issue summary: View changes
tobiasb’s picture

Assigned: rclemings » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.