Index: lib.php
===================================================================
RCS file: /cvsroot/moodle/contrib/plugins/mod/dialogue/lib.php,v
retrieving revision 1.4.10.5
diff -r1.4.10.5 lib.php
2c2
< // $Id: lib.php,v 1.4.10.5 2009/08/05 05:06:56 deeknow Exp $
---
> // $Id: lib.php,v 1.4.10.3 2009/04/25 09:41:49 skodak Exp $
222,223c222,224
<             if ($conversation = get_record('dialogue_conversations', 'grouping',
<                                            $newuser['grouping'])) {
---
>             if ($conversations = get_records('dialogue_conversations', 'grouping',
>                                            $newuser['grouping'], 'id', '*', 0, 1)) {
>                 $conversation = array_pop($conversations);  // we only need one to get the common field values
225a227
>                                             
