summaryrefslogtreecommitdiff
path: root/modules/notification
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-26 12:09:04 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-26 12:09:04 -0800
commit1fd0e14359a7c7164573e4aa897c07680339e713 (patch)
tree62b01b88571e53810aa7f3efc2f0f01e727904e2 /modules/notification
parent22823df22098ed1a69d88c2e5fdc30cd90f72c30 (diff)
Convert all DB where() calls to take 3 arguments.
Convert all open_paren() calls to and_open() or or_open() as appropriate.
Diffstat (limited to 'modules/notification')
-rw-r--r--modules/notification/helpers/notification_event.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index e6d09d74..951e6e52 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -54,7 +54,7 @@ class notification_event_Core {
static function user_deleted($user) {
ORM::factory("subscriptions")
- ->where(array("user_id", $user->id))
+ ->where("user_id", "=", $user->id)
->delete_all();
}
@@ -88,7 +88,7 @@ class notification_event_Core {
static function user_before_delete($user) {
try {
ORM::factory("subscription")
- ->where("user_id", $user->id)
+ ->where("user_id", "=", $user->id)
->delete_all();
} catch (Exception $e) {
Kohana_Log::add("error", "@todo notification_event::user_before_delete() failed");