[LON-CAPA-cvs] cvs: loncom(version_2_2_X) /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 06 Nov 2006 16:03:45 -0000
albertel Mon Nov 6 11:03:45 2006 EDT
Modified files: (Branch: version_2_2_X)
/loncom/homework bridgetask.pm
Log:
- better check for a valid comment
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.184 loncom/homework/bridgetask.pm:1.184.2.1
--- loncom/homework/bridgetask.pm:1.184 Wed Oct 11 17:06:49 2006
+++ loncom/homework/bridgetask.pm Mon Nov 6 11:03:45 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.184 2006/10/11 21:06:49 albertel Exp $
+# $Id: bridgetask.pm,v 1.184.2.1 2006/11/06 16:03:45 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2229,7 +2229,7 @@
&nested_parse(\$dimension{$dim}{'criteria.'.$id},
[@_],{'set_dim_id' => $id});
$result.='</p><p class="LC_grade">'.$status_display.'</p>';
- if ($comment) {
+ if ($comment =~ /\w/) {
$result.='<p class="LC_comment">'.
&mt('Comment: [_1]',$comment).'</p>';
}