changed global $kga to $this->kga

Fixes https://github.com/kimai/kimai-mobile/issues/8