From 1ee7d24766a3055d4199251f6ce990714b9c3641 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 9 Oct 2009 01:12:05 -0700 Subject: 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. --- modules/user/helpers/group.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/user/helpers/group.php') diff --git a/modules/user/helpers/group.php b/modules/user/helpers/group.php index 2590c7d1..fbc5157d 100644 --- a/modules/user/helpers/group.php +++ b/modules/user/helpers/group.php @@ -82,7 +82,13 @@ class group_Core { $group = ORM::factory("group"); foreach($filter as $method => $args) { - $group->$method($args); + switch ($method) { + case "in": + $group->in($args[0], $args[1]); + break; + default: + $group->$method($args); + } } return $group->find_all(); } -- cgit v1.2.3