--- loncom/homework/inputtags.pm 2007/04/18 00:32:02 1.223 +++ loncom/homework/inputtags.pm 2007/05/21 22:57:17 1.224 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.223 2007/04/18 00:32:02 albertel Exp $ +# $Id: inputtags.pm,v 1.224 2007/05/21 22:57:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -629,14 +629,17 @@ sub decideoutput { } $added_computer_text=1; my ($symb) = &Apache::lonnet::whichuser(); - if ((!$env{'course.'. - $env{'request.course.id'}. - '.disable_receipt_display'} eq 'yes')&& - $symb) { + if (($symb ne '') + && + ($env{'course.'.$env{'request.course.id'}. + '.disable_receipt_display'} ne 'yes')) { $message.=(($target eq 'web')?'
':' '). &mt('Your receipt is').' '.&Apache::lonnet::receipt($Apache::inputtags::part). (($target eq 'web')?&Apache::loncommon::help_open_topic('Receipt'):''); } + &Apache::lonnet::logthis(" er \n$symb\n$message\n".$env{'course.'. + $env{'request.course.id'}. + '.disable_receipt_display'}); } $button=0; $previousmsg='';