In date_popup_process_date_part(), ensure $element['#value'] is an array before assigning it an array value.

Comments

Liam Morland created an issue. See original summary.

liam morland’s picture

Status: Active » Needs review
StatusFileSize
new590 bytes

Previously, if an empty string is assigned as if it were an array, it becomes an array. Since PHP 7.1, that does not happen and an error is raised. This patch ensures that array assignment happens only to arrays.

liam morland’s picture

joseph.olstad’s picture

Status: Needs review » Reviewed & tested by the community

Looks good Thanks Liam Morland!

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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