Bugfix: "default_group" behaviour wasn't implemented correctly

This commit is contained in:
Michael Vogel 2016-04-13 22:21:23 +02:00 committed by Roland Haeder
parent bc720c0918
commit 535f382c4e
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
5 changed files with 17 additions and 23 deletions

View file

@ -15,6 +15,7 @@
*/
require_once('include/enotify.php');
require_once('include/group.php');
function dfrn_confirm_post(&$a,$handsfree = null) {
@ -491,10 +492,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
}
$def_gid = get_default_group($uid, $contact["network"]);
if($contact && intval($def_gid)) {
require_once('include/group.php');
if($contact && intval($def_gid))
group_add_member($uid, '', $contact['id'], $def_gid);
}
// Let's send our user to the contact editor in case they want to
// do anything special with this new friend.