--- loncom/homework/structuretags.pm 2007/10/31 17:40:01 1.409 +++ loncom/homework/structuretags.pm 2007/11/13 19:48:09 1.410 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.409 2007/10/31 17:40:01 albertel Exp $ +# $Id: structuretags.pm,v 1.410 2007/11/13 19:48:09 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -723,7 +723,7 @@ sub start_problem { if ($target ne 'analyze') { $Apache::lonhomework::type=&Apache::lonnet::EXT('resource.0.type'); if (($env{'request.state'} eq 'construct') && - defined($env{'form.problemtype'})) { + $env{'form.problemtype'} =~ /\S/) { $Apache::lonhomework::type=$env{'form.problemtype'}; } &Apache::lonxml::debug("Found this to be of type :$Apache::lonhomework::type:");