And the final bit of bugfixing.
GOD-FUCKING-DAMN GLOBALS!
Added check to see if a user is viewing their own profile. If they are, the shouldn’t see the whole ‘add friend’ thing.