diff --git a/booking.studygroups.inc b/booking.studygroups.inc index 69031aa..cbadf94 100644 --- a/booking.studygroups.inc +++ b/booking.studygroups.inc @@ -947,9 +947,9 @@ function _booking_studygroups_update_preallocate($group, $group_mapping, &$sessi } //anyone else already assigned to this group previously //this was checking equal to zero, shouldn't it be equal to 1? - elseif ($working_list[$person->booking_node_id]->processed == 1) { + elseif ($working_list[$person->booking_node_id]->processed == 0) { //check if there is someone that should be allocated to a different group than this person - if (keep_separate_id > 0) { + if ($keep_separate_id > 0) { //work out the next session to assign the other person to $next_session = ($session_id % $group->booking_num_group_sessions) + 1;