[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 09 Apr 2002 04:46:33 -0000
albertel Tue Apr 9 00:46:33 2002 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- checks correctly for a passed symb (closes BUG#246)
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.75 loncom/homework/lonhomework.pm:1.76
--- loncom/homework/lonhomework.pm:1.75 Fri Mar 29 14:19:21 2002
+++ loncom/homework/lonhomework.pm Tue Apr 9 00:46:33 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.75 2002/03/29 19:19:21 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 @@
&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 <a href=\"/adm/ambiguous\">ambiguous</a> reference, submissions ignored<br />");