diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-29 15:26:18 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-12-29 15:26:18 -0800 |
commit | 7e8985d0e8ae8db124ba20c8292c1ca8df038169 (patch) | |
tree | 46b60353591428d1692434ca8785e7b7fac719cd /modules/rest/helpers | |
parent | 02d3fe6973d9511083d8ec6305728f06649f1034 (diff) |
Found another where statement that required converting
Diffstat (limited to 'modules/rest/helpers')
-rw-r--r-- | modules/rest/helpers/rest_event.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/rest/helpers/rest_event.php b/modules/rest/helpers/rest_event.php index ce926107..a06f43ea 100644 --- a/modules/rest/helpers/rest_event.php +++ b/modules/rest/helpers/rest_event.php @@ -23,8 +23,8 @@ class rest_event { */ static function user_before_delete($user) { ORM::factory("user_access_token") - ->where("id", $user->id) - ->delete_all(); + ->where("id", "=", $user->id) + ->delete_all(); } /** @@ -57,10 +57,10 @@ class rest_event { */ static function _get_access_key_form($user, $form) { $key = ORM::factory("user_access_token") - ->where("user_id", $user->id) + ->where("user_id", "=", $user->id) ->find(); - if (!$key->loaded) { + if (!$key->loaded()) { $key->user_id = $user->id; $key->access_key = md5($user->name . rand()); $key->save(); |