summaryrefslogtreecommitdiff
path: root/app/php/facades/CalendarFacade.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/facades/CalendarFacade.php')
-rw-r--r--app/php/facades/CalendarFacade.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/php/facades/CalendarFacade.php b/app/php/facades/CalendarFacade.php
index cee345b..4b00a03 100644
--- a/app/php/facades/CalendarFacade.php
+++ b/app/php/facades/CalendarFacade.php
@@ -44,7 +44,9 @@ class CalendarFacade extends Facade {
$user->DbRecord->ID,
$calendarID
);
- $preferenceRecord->delete();
+ if ($preferenceRecord) {
+ $preferenceRecord->delete();
+ }
}
}