Get current active team name and link from a spesific channel

To be honest I don’t know exactly what that NULL is as I’ve just been editing some code I’ve found.

Echoing $data returns the word “Array”. Echoing $team returns nothing/blank. I’m not getting any errors of any kind. It could be that MAMP is not displaying any errors for some reason? From what I can tell, Error reporting seems to be E_ALL and display reporting seems to be On.

No I’m not passing any Client-ID at this point, is that required for this call? If that’s the case that should be my next step, it’s something I need to do anyway, though, that’s a completely different problem for me to solve.


Edit:
Actually, there was an issue with MAMP, errors are now showing. Let me try something.

Edit 2:
Here are the errors when echoing $data.


Warning: twitchTeam(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in URL removed on line 139

Notice: Undefined index: display_name in URL removed on line 139

Warning: twitchTeam(): It is not safe to rely on the system’s timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in URL removed on line 141

Notice: Array to string conversion in URL removed on line 141