Fixes bug with user roles from PHP 5.3 commit