X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FReport%2FForm%2FContribute%2FOrganizationSummary.php;h=7159cd9d96dbd6c0c246c533555356a8f4adecfb;hb=97fa836cc7cc9d05718a94553caba4e994285387;hp=8e3463896a4720fc6129771596525a33a0d73391;hpb=87a1af45cbfd3da4105bd1f3a5ac411daf4f21c8;p=civicrm-core.git diff --git a/CRM/Report/Form/Contribute/OrganizationSummary.php b/CRM/Report/Form/Contribute/OrganizationSummary.php index 8e3463896a..7159cd9d96 100644 --- a/CRM/Report/Form/Contribute/OrganizationSummary.php +++ b/CRM/Report/Form/Contribute/OrganizationSummary.php @@ -351,7 +351,7 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form { //hack filter display for relationship type $type = substr($this->_params['relationship_type_id_value'], -3); foreach ($statistics['filters'] as $id => $value) { - if ($value['title'] == 'Relationship Type') { + if ($value['title'] == 'Relationship Type' && !empty($id)) { $statistics['filters'][$id]['value'] = 'Is equal to ' . $this->relationTypes[$this->relationshipId . '_' . $type]; } } @@ -387,7 +387,7 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form { $this->relationTypes = $relationTypes = array(); $params = array('contact_type_b' => 'Organization', 'version' => 3); - $typesA = &civicrm_api('relationship_type', 'get', $params); + $typesA = civicrm_api('relationship_type', 'get', $params); if (empty($typesA['is_error'])) { foreach ($typesA['values'] as $rel) { @@ -396,7 +396,7 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form { } $params = array('contact_type_a' => 'Organization', 'version' => 3); - $typesB = &civicrm_api('relationship_type', 'get', $params); + $typesB = civicrm_api('relationship_type', 'get', $params); if (empty($typesB['is_error'])) { foreach ($typesB['values'] as $rel) {