Get current active team name and link from a spesific channel

Yeah line 139 is $team = $data['teams']['display_name']; and line 141 was set to echo $data; instead of the conditional statement that was there above.

I will google those suggestions, thank you very much.