fix for Issue - 314
authorAniessh Sethh <hello@aniesshsethh.com>
Fri, 17 Aug 2018 04:27:33 +0000 (09:57 +0530)
committerAniessh Sethh <hello@aniesshsethh.com>
Fri, 17 Aug 2018 04:27:33 +0000 (09:57 +0530)
CRM/Event/Form/SelfSvcTransfer.php

index e3ede8ea345be68032bc03952d442fc23fa6eecd..fc1703720326d006bbccdb3736ed9864577dd17b 100644 (file)
@@ -337,21 +337,16 @@ class CRM_Event_Form_SelfSvcTransfer extends CRM_Core_Form {
     }
     else {
       //cancel 'from' participant row
-      try{
-        $contact_id_result = civicrm_api3('Contact', 'get', array(
-          'sequential' => 1,
-          'return' => array("id"),
-          'email' => $params['email'],
-          'options' => array('limit' => 1),
-        ));
-        $contact_id_result = $contact_id_result['values'][0];
-        $contact_id = $contact_id_result['contact_id'];
-        $contact_is_deleted = $contact_id_result['contact_is_deleted'];
-        if ($contact_is_deleted || !is_numeric($contact_id)) {
-          CRM_Core_Error::statusBounce(ts('Contact does not exist.'));
-        }
-      }
-      catch (CiviCRM_API3_Exception $e) {
+      $contact_id_result = civicrm_api3('Contact', 'get', array(
+        'sequential' => 1,
+        'return' => array("id"),
+        'email' => $params['email'],
+        'options' => array('limit' => 1),
+      ));
+      $contact_id_result = $contact_id_result['values'][0];
+      $contact_id = $contact_id_result['contact_id'];
+      $contact_is_deleted = $contact_id_result['contact_is_deleted'];
+      if ($contact_is_deleted || !is_numeric($contact_id)) {
         CRM_Core_Error::statusBounce(ts('Contact does not exist.'));
       }
     }