Fix bug, bad performance using api_is_coach(). Set value in variables and $_SESSION -refs BT#8403
Merge pull request #55 from DeEvo/8403

Fix bug -refs BT#8403