diff options
author | emkael <emkael@tlen.pl> | 2016-04-14 13:29:55 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-04-14 13:29:55 +0200 |
commit | 00570ff2838d5f76605399382d034322db92cc40 (patch) | |
tree | 566922583a9fd005bab821bb4854690a947552eb | |
parent | b4c75f6b8ddf12082431225ded19a30a5292770e (diff) |
* removing calendar preference only if such exists
-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(); + } } } |