Log Message:
-----------
Added a check to handle the case when the $errors flag was not defined.
Modified Files:
--------------
pg/macros:
PGanswermacros.pl
Revision Data
-------------
Index: PGanswermacros.pl
===================================================================
RCS file: /webwork/cvs/system/pg/macros/PGanswermacros.pl,v
retrieving revision 1.26
retrieving revision 1.27
diff -Lmacros/PGanswermacros.pl -Lmacros/PGanswermacros.pl -u -r1.26 -r1.27
--- macros/PGanswermacros.pl
+++ macros/PGanswermacros.pl
@@ -3453,7 +3453,7 @@
push(@differences, $diff);
push(@instructorVals,$instructorVal);
}
- if ($errors eq '' or $options{error_msg_flag} ) {
+ if (( not defined($errors) ) or $errors eq '' or $options{error_msg_flag} ) {
$rh_ans ->{$options{stdout}} = \@differences;
$rh_ans ->{ra_student_values} = \@student_values;
$rh_ans ->{ra_adjusted_student_values} = \@adjusted_student_values;
|