CRM-14085 - wrong syntax on inner join for contribution report

http://issues.civicrm.org/jira/browse/CRM-14085
Merge pull request #2390 from dlobo/CRM-14085

CRM-14085 - wrong syntax on inner join for contribution report
CRM-14106 - Regex targeting inline conditonal statements

Pattern used:
=\s*CRM_Utils_Array::value\s*\([ ]*(['"$0-9][^,]*),\s*(\$[^ )]*)\s*\)\s*\?
= \!empty\($2\[$1\]\) \?
CRM-14106 - Regex targeting the first part of if statements

Pattern used
if\s*\(\s*CRM_Utils_Array::value\s*\([ ]*(['"$0-9][^,]*),\s*(\$[^ )]*)\s*\)\s*(\&\&|\|\||\))
if \(!empty\($2\[$1\]\)$3
CRM-14106 - Regex targeting other conditionals

Pattern used:
\s*(&&|\|\|)\s*CRM_Utils_Array::value\s*\([ ]*(['"$0-9][^,]*),\s*(\$[^ )]*)\s*\)\s*(\&\&|\|\||\))
 $1 !empty\($3\[$2\]\)$4
Merge pull request #2391 from colemanw/arrayEmpty

Mass replace CRM_Utils_Array::value() with !empty for performance & readability
HR-252 : limit activity types to NULL grouping
Merge pull request #2393 from yashodha/HR-252

HR-252 : limit activity types to NULL grouping