From c00a5ba42a924e05f33718391c45875604e680ad Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 1 Apr 2019 10:39:57 -0400 Subject: [PATCH] Event Cart: Fix PHP 7.2 fatal error (pass by ref). --- CRM/Event/Cart/Form/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Cart/Form/Cart.php b/CRM/Event/Cart/Form/Cart.php index 3f4f23a319..8b7fc36326 100644 --- a/CRM/Event/Cart/Form/Cart.php +++ b/CRM/Event/Cart/Form/Cart.php @@ -152,7 +152,7 @@ class CRM_Event_Cart_Form_Cart extends CRM_Core_Form { $no_fields = array(); $contact_id = CRM_Contact_BAO_Contact::createProfileContact($contact_params, $no_fields, NULL); if (!$contact_id) { - CRM_Core_Error::displaySessionError("Could not create or match a contact with that email address. Please contact the webmaster."); + CRM_Core_Session::setStatus(ts("Could not create or match a contact with that email address. Please contact the webmaster."), '', 'error'); } return $contact_id; } -- 2.25.1