Moodle

Picture should not have an empty string. Fixed by adding $user->picture = -1 .