Update qa-userid-display-overrides.php

Simplified the code and fixed a _potential_ bug in the code.