Fixed PHP Notices for adv relationship search