• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/update/eventduplicatecleaner.php
  • Класс: BitrixCalendarUpdateEventDuplicateCleaner
  • Вызов: EventDuplicateCleaner::getBogusLocationEntry
private function getBogusLocationEntry(): ?array
{
	global $DB;
	$strSql = "
		select ID from b_calendar_event 
			where 
				ID=PARENT_ID
				and CAL_TYPE = 'location'
				and OWNER_ID = '0'
			limit 1;
	";

	$res = $DB->Query($strSql);
	if ($entry = $res->Fetch())
	{
		return $entry;
	}
	return null;
}