civicrm/civicrm-core — pull request #2135 by pratik-joshi (2013-12-03 09:58:27+00:00)
Title: CRM-13861 : instead of strpos check on 'title' of group lets do a check on profile's group type so that no translation specific issue arise

The fix is for the second point mentioned in issue description and WRT http://issues.civicrm.org/jira/browse/CRM-13861#comment-54537 comment.

In this code snippet we are doing a check for the purpose to show appriopriate profile respecting the relationship type selected . We were doing this check using strpos function using 'title' of the profile. Hence this will break if database will have internationalized version of DB e.g spanish data in the DB .

So improved checking to be done with the profile's group type rather then its 'title' .