--- loncom/homework/radiobuttonresponse.pm 2004/10/21 03:34:06 1.96 +++ loncom/homework/radiobuttonresponse.pm 2004/12/23 17:08:22 1.97 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # mutliple choice style responses # -# $Id: radiobuttonresponse.pm,v 1.96 2004/10/21 03:34:06 albertel Exp $ +# $Id: radiobuttonresponse.pm,v 1.97 2004/12/23 17:08:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -312,6 +312,9 @@ sub whichfoils { &Apache::lonxml::error(&HTML::Entities::encode("No valid value assigned ($Apache::response::foilgroup{$name.'.value'}) for foil $name in ",'<>&"')); } } + if (!$havetrue && $Apache::lonhomework::type ne 'survey') { + &Apache::lonxml::error("There are no true statements available.
"); + } } else { my $current=0; &Apache::lonhomework::showhash(%Apache::response::foilgroup);