Skip to content

Commit

Permalink
Correct the array key access in Google.php (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jul 3, 2023
1 parent a225019 commit 674d7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static function sync(string $provider_id = NULL)
$event_end = new DateTime($google_event->getEnd()->getDateTime() ?? $google_event->getEnd()->getDate());
$event_end->setTimezone($provider_timezone);

$google_event_notes = $appointment['is_unavailable'] ? $google_event->getSummary() . ' ' . $google_event->getDescription() : $google_event->getDescription();
$google_event_notes = $appointment['is_unavailability'] ? $google_event->getSummary() . ' ' . $google_event->getDescription() : $google_event->getDescription();

$is_different = $appointment_start !== $event_start->getTimestamp()
|| $appointment_end !== $event_end->getTimestamp()
Expand Down

0 comments on commit 674d7c4

Please sign in to comment.