From 81e50d634855d118f1b8706e620abe808de1850f Mon Sep 17 00:00:00 2001 From: Nicolas Ganivet Date: Tue, 10 Oct 2017 14:27:57 -0600 Subject: [PATCH] CRM-21281: Fix potential e-notice --- CRM/Price/BAO/LineItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index f064c526b3..505642d602 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -70,8 +70,8 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem { // unset entity table and entity id in $params // we never update the entity table and entity id during update mode if ($id) { - $entity_id = $params['entity_id']; - $entity_table = $params['entity_table']; + $entity_id = CRM_Utils_Array::value('entity_id', $params); + $entity_table = CRM_Utils_Array::value('entity_table', $params); unset($params['entity_id'], $params['entity_table']); } else { -- 2.25.1