[LON-CAPA-cvs] cvs: loncom /homework chemresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 27 Jun 2005 14:27:27 -0000


albertel		Mon Jun 27 10:27:27 2005 EDT

  Modified files:              
    /loncom/homework	chemresponse.pm 
  Log:
  - BUG#4159 logic backwards.
  
  
Index: loncom/homework/chemresponse.pm
diff -u loncom/homework/chemresponse.pm:1.58 loncom/homework/chemresponse.pm:1.59
--- loncom/homework/chemresponse.pm:1.58	Mon Jun 27 06:58:40 2005
+++ loncom/homework/chemresponse.pm	Mon Jun 27 10:27:25 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # chemical equation style response
 #
-# $Id: chemresponse.pm,v 1.58 2005/06/27 10:58:40 foxr Exp $
+# $Id: chemresponse.pm,v 1.59 2005/06/27 14:27:25 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -82,7 +82,7 @@
 
     if ($molecule) { $molecule='<param name="jme" value="'.$molecule.'" />'; }
     my $insert_answer;
-    if ($shown_text ne '') { 
+    if ($shown_text eq '') { 
 	$insert_answer=
 	    '<input type="button" name="submit" value="Insert Answer" onclick="javascript:submitSmiles();" />';
     }