[LON-CAPA-cvs] cvs: loncom /xml lontexconvert.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 24 Oct 2006 01:28:47 -0000


albertel		Mon Oct 23 21:28:47 2006 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
  Log:
  - a <m> placed outside of </problem> could cause an ISE, log the error and go on
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.79 loncom/xml/lontexconvert.pm:1.80
--- loncom/xml/lontexconvert.pm:1.79	Mon Oct 23 14:49:47 2006
+++ loncom/xml/lontexconvert.pm	Mon Oct 23 21:28:47 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.79 2006/10/23 18:49:47 albertel Exp $
+# $Id: lontexconvert.pm,v 1.80 2006/10/24 01:28:47 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -184,6 +184,10 @@
 	push(@jsMath_sent_header,0);
     }
     sub jsMath_header {
+	if (!@jsMath_sent_header) {
+	    &Apache::lonnet::logthis("mismatched calls of jsMath_header and jsMath_process");
+	    return '';
+	}
 	return '' if $jsMath_sent_header[-1];
 	$jsMath_sent_header[-1]=1;
 	return