From b9305f2f75edac0e85b898322b481b0a7428fee4 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Wed, 20 Jan 2016 14:40:16 +0530 Subject: [PATCH] CRM-16259, fixed notice error ---------------------------------------- * CRM-16259: Create Payment API https://issues.civicrm.org/jira/browse/CRM-16259 --- api/v3/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Payment.php b/api/v3/Payment.php index f843ded7d2..8c171e8a4b 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -121,7 +121,7 @@ function civicrm_api3_payment_cancel(&$params) { */ function civicrm_api3_payment_create(&$params) { // Check if it is an update - if ($params['id']) { + if (CRM_Utils_Array::value ('id', $params)) { $amount = $params['total_amount']; civicrm_api3('Payment', 'cancel', $params); $params['total_amount'] = $amount; -- 2.25.1