[LON-CAPA-cvs] cvs: loncom /homework grades.pm
raeburn
raeburn@source.lon-capa.org
Mon, 08 Feb 2010 01:09:37 -0000
raeburn Mon Feb 8 01:09:37 2010 EDT
Modified files:
/loncom/homework grades.pm
Log:
- Prevent ISE.
Can be triggered if a user has multiple tabs open switched course,
then tries to view grading screen in originally selected course.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.592 loncom/homework/grades.pm:1.593
--- loncom/homework/grades.pm:1.592 Fri Feb 5 14:52:28 2010
+++ loncom/homework/grades.pm Mon Feb 8 01:09:36 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.592 2010/02/05 14:52:28 bisitz Exp $
+# $Id: grades.pm,v 1.593 2010/02/08 01:09:36 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -160,6 +160,10 @@
return;
}
my $res = $navmap->getBySymb($symb);
+ unless (ref($res)) {
+ $$response_error = 1;
+ return;
+ }
my $partlist = $res->parts();
my %vPart =
map { $_ => 1 } (&Apache::loncommon::get_env_multiple('form.vPart'));