[LON-CAPA-cvs] cvs: loncom /interface courseprefs.pm
raeburn
raeburn at source.lon-capa.org
Sat Aug 2 21:47:49 EDT 2014
raeburn Sun Aug 3 01:47:49 2014 EDT
Modified files:
/loncom/interface courseprefs.pm
Log:
- Sanity checking for $mapres.
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.67 loncom/interface/courseprefs.pm:1.68
--- loncom/interface/courseprefs.pm:1.67 Fri Jun 13 01:48:26 2014
+++ loncom/interface/courseprefs.pm Sun Aug 3 01:47:49 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.67 2014/06/13 01:48:26 raeburn Exp $
+# $Id: courseprefs.pm,v 1.68 2014/08/03 01:47:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2624,9 +2624,9 @@
}
foreach my $map (keys(%allmaps)) {
my $mapres = $navmap->getResourceByUrl($map);
- my $mapsymb = $mapres->symb();
- $toshow{$mapsymb} = 1;
if (ref($mapres)) {
+ my $mapsymb = $mapres->symb();
+ $toshow{$mapsymb} = 1;
my $pcslist = $mapres->map_hierarchy();
if ($pcslist ne '') {
foreach my $pc (split(/,/,$pcslist)) {
More information about the LON-CAPA-cvs
mailing list