[LON-CAPA-cvs] cvs: loncom /interface/spreadsheet assesscalc.pm
raeburn
raeburn at source.lon-capa.org
Fri Oct 12 09:56:38 EDT 2012
raeburn Fri Oct 12 13:56:38 2012 EDT
Modified files:
/loncom/interface/spreadsheet assesscalc.pm
Log:
- Check $navmap is an object.
Index: loncom/interface/spreadsheet/assesscalc.pm
diff -u loncom/interface/spreadsheet/assesscalc.pm:1.58 loncom/interface/spreadsheet/assesscalc.pm:1.59
--- loncom/interface/spreadsheet/assesscalc.pm:1.58 Tue Jan 23 01:36:26 2007
+++ loncom/interface/spreadsheet/assesscalc.pm Fri Oct 12 13:56:38 2012
@@ -1,5 +1,5 @@
#
-# $Id: assesscalc.pm,v 1.58 2007/01/23 01:36:26 albertel Exp $
+# $Id: assesscalc.pm,v 1.59 2012/10/12 13:56:38 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -156,7 +156,7 @@
if (! defined($navmap)) {
$navmap = Apache::lonnavmaps::navmap->new();
}
- if (!defined($navmap)) {
+ if ((!defined($navmap)) || (!ref($navmap))) {
&Apache::lonnet::logthis('assesscalc:Can not open Coursemap');
}
&Apache::loncoursedata::clear_internal_caches();
More information about the LON-CAPA-cvs
mailing list