From 93349804fa84ed3dfcddb25d6e2bfafb96ba6494 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Mon, 1 Feb 2021 17:42:01 +0100 Subject: [PATCH] remove info message for empty event response --- api/v3/TwingleEvent/Sync.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/api/v3/TwingleEvent/Sync.php b/api/v3/TwingleEvent/Sync.php index 54002b7..29869e3 100644 --- a/api/v3/TwingleEvent/Sync.php +++ b/api/v3/TwingleEvent/Sync.php @@ -162,21 +162,9 @@ function civicrm_api3_twingle_event_Sync(array $params): array { // Counter for sync errors $errors_occurred = 0; - // Get all events for given project from Twingle and CiviCRM + // Get all events for provided project from Twingle and CiviCRM if ($params['project_id']) { $events_from_twingle = $twingleApi->getEvent($params['project_id']); - - // If Twingle does not know any events for this project_id (yet) - if ($events_from_twingle['count'] == 0) { - return civicrm_api3_create_success( - "Apparently this project does not have any events yet or " . - "the provided project_id is unknown to Twingle.", - $params, - 'TwingleEvent', - 'Sync' - ); - } - $events_from_civicrm = civicrm_api3( 'TwingleEvent', 'get',