Closed issue: Internal Server Error (local variable 'friend_result' was missing)