Event Cart: Fix PHP 7.2 fatal error (pass by ref).
authorMathieu Lutfy <mathieu@symbiotic.coop>
Mon, 1 Apr 2019 14:39:57 +0000 (10:39 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Tue, 2 Apr 2019 20:55:35 +0000 (16:55 -0400)
CRM/Event/Cart/Form/Cart.php

index 3f4f23a31930f33dafac689ceb51db0d58afa84c..8b7fc363269be8c86945d6ea31f07ccd8c30e295 100644 (file)
@@ -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;
   }