CRM-14106 - Swap CRM_Utils_Array::value for empty() when cast to boolean
[civicrm-core.git] / CRM / Event / Form / Participant.php
index 1c0f840f11f5691754227d71ee0c6e6cc417f1ed..edbfd0da5413b8114ce82687231222b78196e6b4 100644 (file)
@@ -1668,7 +1668,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
           'groupName' => 'msg_tpl_workflow_event',
           'valueName' => 'event_offline_receipt',
           'contactId' => $contactID,
-          'isTest' => (bool) CRM_Utils_Array::value('is_test', $this->_defaultValues),
+          'isTest' => !empty($this->_defaultValues['is_test']),
           'PDFFilename' => ts('confirmation') . '.pdf',
         );