X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FBAO%2FProduct.php;h=eb79c86d7b103188ca05821f50fb84c3f8ff69d9;hb=69bb8c7f553de544d2adc74d42a4fb72f7de6bd6;hp=da9414465375848558f145fa2a4b1ce80127b8a6;hpb=08ff628c6d369dc380b56d63a917f5e9f47adc7e;p=civicrm-core.git diff --git a/CRM/Contribute/BAO/Product.php b/CRM/Contribute/BAO/Product.php index da94144653..eb79c86d7b 100644 --- a/CRM/Contribute/BAO/Product.php +++ b/CRM/Contribute/BAO/Product.php @@ -78,7 +78,7 @@ class CRM_Contribute_BAO_Product extends CRM_Contribute_DAO_Product { * @return CRM_Contribute_DAO_Product */ public static function create($params) { - $id = CRM_Utils_Array::value('id', $params); + $id = $params['id'] ?? NULL; if (empty($id)) { $defaultParams = [ 'id' => $id,