Fixed error with code being in wrong scope.
Merge branch 'master' of https://github.com/userapp-io/userapp-php-widget