From: John Graham-C. <jgr...@us...> - 2005-12-20 20:22:15
|
Update of /cvsroot/popfile/engine/Classifier In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26398/Classifier Modified Files: Bayes.pm Log Message: When creating a new user without cloning make sure that they have the unclassified bucket Index: Bayes.pm =================================================================== RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v retrieving revision 1.348 retrieving revision 1.349 diff -C2 -d -r1.348 -r1.349 *** Bayes.pm 20 Dec 2005 19:57:32 -0000 1.348 --- Bayes.pm 20 Dec 2005 20:22:06 -0000 1.349 *************** *** 3372,3375 **** --- 3372,3381 ---- # TODO clone bucket parameters + } else { + + # If we are not cloning a user then they need at least the + # default settings + + $self->db_()->do( "insert into buckets ( name, pseudo, userid ) values ( 'unclassified', 1, $id );" ); } |