Resolve PHP notices.
authorFrank J. Gómez <frank@ginkgostreet.com>
Wed, 30 Apr 2014 02:07:42 +0000 (19:07 -0700)
committerFrank J. Gómez <frank@ginkgostreet.com>
Wed, 30 Apr 2014 02:07:42 +0000 (19:07 -0700)
CRM/Contribute/Form/Contribution/Confirm.php

index f98081eb59ca0209e90a3b448b2ccae600aa0c7f..20c6b66c7b525c2a315a146e6d3988df34a0aeb7 100644 (file)
@@ -178,8 +178,8 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
           // contribution amount to be null, so that it will not show
           // contribution amount same as membership amount.
           if ($this->_membershipBlock['is_separate_payment']
-            && $this->_values['fee'][$priceField->id]['name'] == 'contribution_amount'
-            && $this->_params["price_{$priceField->id}"] == '-1'
+            && CRM_Utils_Array::value('name', $this->_values['fee'][$priceField->id]) == 'contribution_amount'
+            && CRM_Utils_Array::value("price_{$priceField->id}", $this->_params) == '-1'
           ) {
             $this->_params['amount'] = null;
           }