diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-06 18:20:46 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-06 18:20:46 -0700 |
commit | 8a36c24f39e7a6111f7872ec443e6efa63580c82 (patch) | |
tree | d08ebc1976c024514fcbfbcae851cc0a73b6fb9c /modules/user/helpers | |
parent | cc399bf4f07fd7060536f442373a1e9c0ea4a5aa (diff) |
Fix some broken identity APIs:
- add_user_to_group and remove_user_from_group should take Group_Definition instances
to be consistent
- add_user_to_group and remove_user_from_group in drivers/IdentityProvider.php should
not be static
Diffstat (limited to 'modules/user/helpers')
-rw-r--r-- | modules/user/helpers/group.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php index c84910f1..88bfac35 100644 --- a/modules/user/helpers/group.php +++ b/modules/user/helpers/group.php @@ -68,13 +68,13 @@ class group_Core { */ private static function _lookup_by_field($field_name, $value) { try { - $user = model_cache::get("group", $value, $field_name); - if ($user->loaded()) { - return $user; + $group = model_cache::get("group", $value, $field_name); + if ($group->loaded()) { + return $group; } } catch (Exception $e) { if (strpos($e->getMessage(), "MISSING_MODEL") === false) { - throw $e; + throw $e; } } return null; |