fixed fatal errors in user/show page (gift and api_gift problems)