Problem with SuiteCRM API?

Hi - I’m using Suite with Mautic. I’m working with issues doing a full contact sync. It seems the Sugar 6/7 plugin for Mautic works with Sugar properly but not with Suite. I may be wrong but want to ask knowledgable Suite folks if this is a Suite API issue or not. Here’s the log entry thrown when trying to push a contact change from Mautic to Suite (it works properly from Suite to Mautic).

PHP Notice: Undefined variable: RECORDS_LIST_NAME in /path/to/mautic/plugins/MauticCrmBundle/Integration/SugarcrmIntegration.php on line 854

That line/section in the file references looks as below - any help much appreciated!

838 /** @var IntegrationEntityRepository $integrationEntityRepo */
839 $integrationEntityRepo = $this->em->getRepository(‘MauticPluginBundle:IntegrationEntity’);
840 $companyRepo = $this->em->getRepository(‘MauticLeadBundle:Company’);
841
842 $sugarRejectedLeads = [];
843 if (isset($data[‘entry_list’])) {
844 $SUGAR_VERSION = ‘6’;
845 $RECORDS_LIST_NAME = ‘entry_list’;
846 $MODULE_FIELD_NAME = ‘module_name’;
847 }
848 if (isset($data[‘records’])) {
849 $SUGAR_VERSION = ‘7’;
850 $RECORDS_LIST_NAME = ‘records’;
851 $MODULE_FIELD_NAME = ‘_module’;
852 }
853
854 if (isset($data[$RECORDS_LIST_NAME]) and $object !== ‘Activity’) {
855
856 //Get assigned user ids
857 $assignedUserIds = [];
858 $onwerEmailByAssignedUserId = [];
859 if ($object == ‘Leads’ || $object == ‘Contacts’ || $object == ‘Accounts’) {
860 foreach ($data[$RECORDS_LIST_NAME] as $key => $record) {
861 if ($SUGAR_VERSION == ‘6’) {
862 foreach ($record[‘name_value_list’] as $item) {
863 if ($item[‘name’] == ‘assigned_user_id’ && $item[‘value’] && $item[‘value’] != ‘’) {
864 $assignedUserIds[] = $item[‘value’];
865 }
866 }
867 } else {
868 if (isset($record[‘assigned_user_id’]) && $record[‘assigned_user_id’] != ‘’) {
869 $assignedUserIds[] = $record[‘assigned_user_id’];
870 }
871 }
872 }
873 }