Update invite.php

see the discussion at this link
https://github.com/Elgg/Elgg/issues/6234#issuecomment-29071754