Well if thats what it returns then I wonder why it is not returning a result
Code:
Content visible to verified customers only.
You see your $hasav is 0 and is not empty so why is the avatar not built per the code we use mine is.
HMM try changing the line above to this and see
Code:
Content visible to verified customers only.