--- loncom/homework/lonhomework.pm 2003/05/09 17:01:08 1.122 +++ loncom/homework/lonhomework.pm 2003/05/09 22:24:05 1.123 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.122 2003/05/09 17:01:08 albertel Exp $ +# $Id: lonhomework.pm,v 1.123 2003/05/09 22:24:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -214,7 +214,8 @@ sub check_access { if ( $tries eq '' ) { $tries = '0'; } if ( $maxtries eq '' ) { $maxtries = '2'; } if ($tries >= $maxtries) { $status = 'CANNOT_ANSWER'; } - if($Apache::lonhomework::history{"resource.$id.solved"}=~/^correct/) { + if($Apache::lonhomework::history{"resource.$id.solved"}=~/^correct/ + && lc($Apache::lonhomework::problemstatus) ne 'no') { $status = 'CANNOT_ANSWER'; } }