[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
ng
lon-capa-cvs@mail.lon-capa.org
Wed, 07 Aug 2002 15:39:58 -0000
ng Wed Aug 7 11:39:58 2002 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
checks to see whether gradesub exists before sending out for hightlighting.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.48 loncom/interface/loncommon.pm:1.49
--- loncom/interface/loncommon.pm:1.48 Thu Aug 1 12:48:21 2002
+++ loncom/interface/loncommon.pm Wed Aug 7 11:39:58 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.48 2002/08/01 16:48:21 bowersj2 Exp $
+# $Id: loncommon.pm,v 1.49 2002/08/07 15:39:58 ng Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1093,7 +1093,7 @@
} else {
$value=$lasthash{$_};
}
- if ($_ =~/$regexp$/) {$value = &$gradesub($value)}
+ if ($_ =~/$regexp$/ && (defined &$gradesub)) {$value = &$gradesub($value)}
$prevattempts.='<td>'.$value.' </td>';
}
$prevattempts.='</tr></table></td></tr></table>';