[LON-CAPA-cvs] cvs: loncom /interface lontrackstudent.pm
raeburn
raeburn@source.lon-capa.org
Sat, 20 Dec 2008 04:31:55 -0000
raeburn Sat Dec 20 04:31:55 2008 EDT
Modified files:
/loncom/interface lontrackstudent.pm
Log:
- Check that navmap object could be created to avoid ISE.
Index: loncom/interface/lontrackstudent.pm
diff -u loncom/interface/lontrackstudent.pm:1.24 loncom/interface/lontrackstudent.pm:1.25
--- loncom/interface/lontrackstudent.pm:1.24 Thu Dec 11 14:55:15 2008
+++ loncom/interface/lontrackstudent.pm Sat Dec 20 04:31:55 2008
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lontrackstudent.pm,v 1.24 2008/12/11 14:55:15 bisitz Exp $
+# $Id: lontrackstudent.pm,v 1.25 2008/12/20 04:31:55 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -516,6 +516,11 @@
#
# We will almost always need this...
my $navmap = Apache::lonnavmaps::navmap->new();
+ if (!defined($navmap)) {
+ my $requrl = $r->uri;
+ $env{'user.error.msg'} = "$requrl:bre:0:0:Navmap initialization failed.";
+ return HTTP_NOT_ACCEPTABLE;
+ }
#
&Apache::lonhtmlcommon::clear_breadcrumbs();
&Apache::lonhtmlcommon::add_breadcrumb({href=>'/adm/studentactivity',