| … | |
… | |
| 626 | if (not defined($newSetRecord)) { |
626 | if (not defined($newSetRecord)) { |
| 627 | $self->adderrmsg("You are trying to add problems to $localSet, but that set does not seem to exist! I bet you used your \"Back\" button."); |
627 | $self->adderrmsg("You are trying to add problems to $localSet, but that set does not seem to exist! I bet you used your \"Back\" button."); |
| 628 | } else { |
628 | } else { |
| 629 | my $addcount = add_selected($self, $db, $localSet); |
629 | my $addcount = add_selected($self, $db, $localSet); |
| 630 | if($addcount > 0) { |
630 | if($addcount > 0) { |
| 631 | $self->adderrmsg("Successfully added $addcount problem".(($addcount>1)?'s':''). |
631 | $self->addgoodmsg("Successfully added $addcount problem".(($addcount>1)?'s':''). |
| 632 | " to $localSet."); |
632 | " to $localSet."); |
| 633 | } |
633 | } |
| 634 | } |
634 | } |
| 635 | } |
635 | } |
| 636 | } |
636 | } |