summaryrefslogtreecommitdiff
path: root/modules/notification/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notification/helpers')
-rw-r--r--modules/notification/helpers/notification_event.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index 951e6e52..2c7ede27 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -53,14 +53,16 @@ class notification_event_Core {
}
static function user_deleted($user) {
- ORM::factory("subscriptions")
+ db::build()
+ ->delete("subscriptions")
->where("user_id", "=", $user->id)
- ->delete_all();
+ ->execute();
}
static function identity_provider_changed($old_provider, $new_provider) {
- ORM::factory("subscriptions")
- ->delete_all();
+ db::build()
+ ->delete("subscriptions")
+ ->execute();
}
static function comment_created($comment) {