--- loncom/homework/grades.pm 2015/02/22 15:23:56 1.733 +++ loncom/homework/grades.pm 2015/03/17 12:22:20 1.734 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.733 2015/02/22 15:23:56 raeburn Exp $ +# $Id: grades.pm,v 1.734 2015/03/17 12:22:20 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -4864,7 +4864,7 @@ sub displaySubByDates { } else { $displaySub[0].=&mt('Trial: [_1]', $$record{"$where.$partid.tries"}); - if ($rndseed || $lastrndseed{$partid}) { + if (($rndseed ne '') && ($lastrndseed{$partid} ne '')) { if ($rndseed ne $lastrndseed{$partid}) { $newvariation = ' ('.&mt('New variation this try').')'; }