summaryrefslogtreecommitdiff
path: root/modules/notification/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-03 13:28:26 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-03 13:28:26 -0800
commit93ec51aa0fd91e1534563d9e9514e85be4e3ce2e (patch)
tree012d6ff2c9fda6c7812d6f4397396b627ffd606c /modules/notification/helpers
parent595e03b556a8675844f868778c65f79e1b632d24 (diff)
parent192b11724ef315ebaabb3088a0daba1450fd7df0 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/notification/helpers')
-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) {