Removing that appears to disable avatars completely. I messed around with the code a bit, and it turns out that the only relevent line is precisely the one you told me to take out:
Code:
Content visible to verified customers only.
If I get rid of the entire conditional and just leave that piece intact (changing elseif to if), avatars will still work. Seems a bit strange, though, since doesn't $hasav == 0 mean that the user has no avatar?