Brainstorm fix
This commit is contained in:
@@ -618,6 +618,12 @@ function microsoft_update_event(int $userId, string $eventId, array $eventData):
|
||||
if (!empty($eventData['subject'])) {
|
||||
$payload['subject'] = $eventData['subject'];
|
||||
}
|
||||
if (isset($eventData['description']) && $eventData['description'] !== '') {
|
||||
$payload['body'] = [
|
||||
'contentType' => 'HTML',
|
||||
'content' => nl2br(htmlspecialchars($eventData['description'])),
|
||||
];
|
||||
}
|
||||
|
||||
$date = !empty($eventData['date']) ? $eventData['date'] : date('Y-m-d');
|
||||
$startTime = !empty($eventData['start_time']) ? $eventData['start_time'] : '09:00';
|
||||
|
||||
Reference in New Issue
Block a user