summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_event.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-11-01 11:25:08 -0700
committerChad Kieffer <ckieffer@gmail.com>2009-11-01 11:25:08 -0700
commit1202db1c3a67ff8232254989ece76e707b21d730 (patch)
tree2d55b73ec9bbd9d1f5dbc7d9e8972d9b05285a25 /modules/notification/helpers/notification_event.php
parent7ae4b35d787bf51ac98baf1c1818f580e0195016 (diff)
parent91c5a9abb7b617e45b547ced6a28c14a64ef760f (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/notification/helpers/notification_event.php')
-rw-r--r--modules/notification/helpers/notification_event.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index b82e4f0f..6b2df574 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -53,11 +53,14 @@ class notification_event_Core {
}
static function user_deleted($user) {
- Database::instance()->query("DELETE FROM {subscriptions} where user_id = {$user->id}");
+ ORM::factory("subscriptions")
+ ->where(array("user_id", $user->id))
+ ->delete_all();
}
static function identity_provider_changed($old_provider, $new_provider) {
- Database::instance()->query("DELETE FROM {subscriptions}");
+ ORM::factory("subscriptions")
+ ->delete_all();
}
static function comment_created($comment) {