Skip to content

Commit

Permalink
Merge pull request #49 from lcdservices/GTW-48
Browse files Browse the repository at this point in the history
GTW-48 exit if no matching record
  • Loading branch information
rajeshrhino authored Apr 26, 2022
2 parents 840e35c + 266c39f commit 2a92aac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gotowebinar.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ function gotowebinar_civicrm_post( $op, $objectName, $objectId, &$objectRef ) {
'email' => $fieldsDao->email,
);
}

//48 exit if no matching record (e.g. unsynched status)
if (empty($fields)) {
return;
}

$custom_group_name = 'Webinar_Event';
$customGroupParams = array(
'version' => 3,
Expand Down

0 comments on commit 2a92aac

Please sign in to comment.