Added output parameter fixture_type
Removed unncessary line
Added function call on load
Added function call on load
Fixed query if leagueidarray is empty array ([])