Skip to content

Fix PHP 8 error for Participant Change Selections

Steps to reproduce, with PHP 8:

  • View Participant with price set registration
  • Click Change Selections

Result: Network error, Type error logged in Drupal log

Seems like $code can be either null or []. Not sure if those are meaningfully different, but I thought safer to just leave the variable as is rather than setting it null.

Edited by larsssandergreen

Merge request reports