Warning when visiting settings form

Created on 15 December 2023, 6 months ago
Updated 7 March 2024, 4 months ago

Problem/Motivation

If you have no page headers to modify then there is the following warning displayed:
Warning: foreach() argument must be of type array|object, null given in Drupal\access_unpublished\Form\SettingsForm->prepareHeadersDisplay()

Proposed resolution

Cast $headers as array to ensure warning is not shown.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom kristiantosney

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

Comments & Activities

Production build 0.69.0 2024