--- loncom/homework/structuretags.pm 2005/11/03 11:10:25 1.308 +++ loncom/homework/structuretags.pm 2005/11/03 12:14:31 1.310 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.308 2005/11/03 11:10:25 foxr Exp $ +# $Id: structuretags.pm,v 1.310 2005/11/03 12:14:31 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -693,7 +693,7 @@ sub start_problem { # The big change; Due do the comparison on # the absolute time rather than textual time since that is format independent. # - if ($due_file_content ne $duetime) { + if ($due_file_content != $duetime) { $temp_file = Apache::File->new('>'.$filename); print $temp_file "$duetime\n"; if (not $env{'request.symb'} =~ m/\.page_/) { @@ -736,6 +736,7 @@ sub start_problem { sub end_problem { my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; my $result=''; + my $status=$Apache::inputtags::status['-1']; if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' || $target eq 'tex') {