]> git.mxchange.org Git - friendica.git/commitdiff
bug #434 - default group placement not working after accepting dfrn friend request
authorfriendica <info@friendica.com>
Sat, 26 May 2012 01:06:51 +0000 (18:06 -0700)
committerfriendica <info@friendica.com>
Sat, 26 May 2012 01:06:51 +0000 (18:06 -0700)
mod/dfrn_confirm.php

index 093993bbc429070fd5a9d529ede1d3ef0c497a03..564ae5ca2346a952e4ccf750c30bdd8b43d7012d 100644 (file)
@@ -500,7 +500,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                );
                if($contact && $g && intval($g[0]['def_gid'])) {
                        require_once('include/group.php');
-                       group_add_member($uid,'',$contact[0]['id'],$g[0]['def_gid']);
+                       group_add_member($uid,'',$contact['id'],$g[0]['def_gid']);
                }
 
                // Let's send our user to the contact editor in case they want to