Open markspolakovs opened 2 years ago
https://github.com/UniversityRadioYork/MyRadio/blob/master/src/Classes/ServiceAPI/MyRadio_Season.php#L174 is the function that creates a season - best way to implement this is likely to check count($params['weeks'])
and throw a MyRadioException
with code 400 if this is zero.
Empty seasons are pointless (unlike empty shows), so it'd be good to validate this.