[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /homework/caparesponse caparesponse.pm

raeburn raeburn@source.lon-capa.org
Sat, 26 Feb 2011 01:45:02 -0000


raeburn		Sat Feb 26 01:45:02 2011 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - Backport 1.246.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.236.12.1 loncom/homework/caparesponse/caparesponse.pm:1.236.12.2
--- loncom/homework/caparesponse/caparesponse.pm:1.236.12.1	Fri Aug 20 03:44:18 2010
+++ loncom/homework/caparesponse/caparesponse.pm	Sat Feb 26 01:45:02 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.236.12.1 2010/08/20 03:44:18 raeburn Exp $
+# $Id: caparesponse.pm,v 1.236.12.2 2011/02/26 01:45:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1079,6 +1079,7 @@
     my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
     my $result;
     my $id = &Apache::response::start_response($parstack,$safeeval);
+    undef(%answer);
     if ($target eq 'meta') {
 	$result=&Apache::response::meta_package_write('stringresponse');
     } elsif ($target eq 'edit') {