X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FFinancial%2FBAO%2FFinancialAccount.php;h=02ff4d9de89dd0440b1c3d3afafa92712ea66a26;hb=6e462705b90760c6f21428ff93f70df55feefdc1;hp=9e37d4ceaf4db9f34c7ede44bcde362ab9ba4930;hpb=28a1c87b4cc6a4a2e616fc57bd50d526624106e9;p=civicrm-core.git diff --git a/CRM/Financial/BAO/FinancialAccount.php b/CRM/Financial/BAO/FinancialAccount.php index 9e37d4ceaf..02ff4d9de8 100644 --- a/CRM/Financial/BAO/FinancialAccount.php +++ b/CRM/Financial/BAO/FinancialAccount.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ class CRM_Financial_BAO_FinancialAccount extends CRM_Financial_DAO_FinancialAccount { @@ -263,7 +263,9 @@ WHERE cft.id = %1 Civi::$statics[__CLASS__]['entity_financial_account'][$financialTypeID][$accountRelationshipID] = $incomeAccountFinancialAccountID; } } - + if (!isset(Civi::$statics[__CLASS__]['entity_financial_account'][$financialTypeID][$relationTypeId])) { + Civi::$statics[__CLASS__]['entity_financial_account'][$financialTypeID][$relationTypeId] = NULL; + } } return Civi::$statics[__CLASS__]['entity_financial_account'][$financialTypeID][$relationTypeId]; }