if ($this->profile->userinfo['userid'] == $this->registry->userinfo['userid'] AND $_REQUEST['tab'] == 'friends'