Update viewandcompare.php

handle the issue if the friend did not share any data..