--- loncom/homework/lonhomework.pm 2002/03/29 18:32:46 1.74
+++ loncom/homework/lonhomework.pm 2002/04/09 04:46:33 1.76
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.74 2002/03/29 18:32:46 albertel Exp $
+# $Id: lonhomework.pm,v 1.76 2002/04/09 04:46:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -334,7 +334,8 @@ sub renderpage {
&Apache::edit::initialize_edit;
if ($target eq 'analyze') { %Apache::lonhomework::anaylze=(); }
if ($target eq 'web') {
- if (&Apache::lonnet::symbread() eq '') {
+ my ($symb)=&Apache::lonxml::whichuser();
+ if ($symb eq '') {
if ($ENV{'request.state'} eq "construct") {
} else {
$request->print("Browsing or ambiguous reference, submissions ignored
");
@@ -359,6 +360,7 @@ sub renderpage {
} else {
if ($target eq 'analyze') {
$result=&Apache::lonnet::hashref2str(\%Apache::lonhomework::analyze);
+ undef(%Apache::lonhomework::analyze);
}
#my $td=&tv_interval($t0);
#if ( $Apache::lonxml::debug) {