diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-09 01:12:05 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-09 01:27:26 -0700 |
| commit | 1ee7d24766a3055d4199251f6ce990714b9c3641 (patch) | |
| tree | a198bb05283f35dc47b6617140ccd1a4531f9f75 /modules/user/helpers/user.php | |
| parent | 00ee91837faf4807fb17dde3272ca8248a9dcd94 (diff) | |
Add support for the in filter to get_user_list and get_group_list. Convert the notifications to use user::get_user_list instead of accessing the table directly.
Diffstat (limited to 'modules/user/helpers/user.php')
| -rw-r--r-- | modules/user/helpers/user.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php index 6a155768..c6a7735b 100644 --- a/modules/user/helpers/user.php +++ b/modules/user/helpers/user.php @@ -334,7 +334,13 @@ class user_Core { $user = ORM::factory("user"); foreach($filter as $method => $args) { - $user->$method($args); + switch ($method) { + case "in": + $user->in($args[0], $args[1]); + break; + default: + $user->$method($args); + } } return $user->find_all(); } |
