civicrm/civicrm-core — pull request #1561 by cividesk (2013-08-31 04:30:43+00:00)
Title: Fix regression on membership

I've had to correct this for 4.2 LTS - apparently $relTypeDir[$dir] is of type Array now. Have not have time to investigate why, but this statement is functionally equivalent and works with type Array().