ymcatwincities / ymca_sync

Syncer for Open Y and not only
0 stars 4 forks source link

Invalid argument exception when no active syncer is found. #6

Open andrebonon opened 2 months ago

andrebonon commented 2 months ago

The error below happens when there is no sync active.

TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 81 of modules/contrib/ymca_sync/src/Form/SettingsForm.php).

Proposed resolution: Set an empty array to $active instead of null.

andrebonon commented 2 months ago

https://github.com/ymcatwincities/ymca_sync/pull/7