diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/php/facades/CalendarFacade.php | 4 |
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(); + } } } |