--- loncom/homework/response.pm	2003/11/03 21:47:21	1.88
+++ loncom/homework/response.pm	2003/11/21 19:54:42	1.89
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.88 2003/11/03 21:47:21 albertel Exp $
+# $Id: response.pm,v 1.89 2003/11/21 19:54:42 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -111,8 +111,8 @@ sub meta_parameter_write {
     }
     $result.=            ' name="'.$name.'"'.
                          ' type="'.$type.'"'.
-($default?' default="'.$default.'"':'').
-($display?' display="'.$display.' [Part: '.$partref.']"':'')
+(defined($default)?' default="'.$default.'"':'').
+(defined($display)?' display="'.$display.' [Part: '.$partref.']"':'')
              .'></parameter>'
              ."\n";
     return $result;
@@ -555,7 +555,6 @@ sub whichorder {
     for (my $i=0;$i<=$#bottomlist;$i++) {
 	if ($bottomlist[$i]) { push(@whichopt,$bottomlist[$i]) }
     }
-
     return @whichopt;
 }