summaryrefslogtreecommitdiff
path: root/app/php/facades
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-14 13:29:55 +0200
committeremkael <emkael@tlen.pl>2016-04-14 13:29:55 +0200
commit00570ff2838d5f76605399382d034322db92cc40 (patch)
tree566922583a9fd005bab821bb4854690a947552eb /app/php/facades
parentb4c75f6b8ddf12082431225ded19a30a5292770e (diff)
* removing calendar preference only if such exists
Diffstat (limited to 'app/php/facades')
-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();
+ }
}
}