Skip to content
Commit af4eeb62 authored by Kasper Garnæs's avatar Kasper Garnæs
Browse files

Ensure #attributes for components is always an array

We have seen situations for current installs where #attributes is
stored as an empty string in the data base. This may be the result of
A bad upgrade path or the like. We do not know.

When upgrading to PHP 7.4 this results in errors “Cannot use string 
offset as an array” when rendering the affected components.

Updating each component through the admin interface fixes this but it
is unreasonable to require editors to do this for all webforms. 

To address this we ensure #attributes default to an empty array.

Another option might be an update hook going through all components.
parent ef779380
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment