made an oopsie on friend.php

also changed one line for 'strict standards' error