Fixing php errors in Teampage and LeagueAccess