]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2694 fixed typo in join_group()
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Nov 2010 19:25:19 +0000 (19:25 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 29 Nov 2010 19:25:19 +0000 (19:25 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7473 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/group.php

index 3e2cc715bd7d7ccd97bf27463fa6d6a9eff342b5..c6bd27f2d484f84815ff23d615c6b7756985bc14 100644 (file)
@@ -559,15 +559,15 @@ function is_group_member($group_guid, $user_guid) {
 /**
  * Join a user to a group.
  *
- * @param int $group_guid The group.
- * @param int $user_guid  The user.
+ * @param int $group_guid The group GUID.
+ * @param int $user_guid  The user GUID.
  *
  * @return bool
  */
 function join_group($group_guid, $user_guid) {
        $result = add_entity_relationship($user_guid, 'member', $group_guid);
 
-       $param = array('group' => get_entity($group_guid), 'user' => get_entity($user_guid));
+       $params = array('group' => get_entity($group_guid), 'user' => get_entity($user_guid));
        elgg_trigger_event('join', 'group', $params);
 
        return $result;