[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Thu Apr 9 13:46:55 EDT 2015


raeburn		Thu Apr  9 17:46:55 2015 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Verify interval parameter is for a map.  
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1279 loncom/lonnet/perl/lonnet.pm:1.1280
--- loncom/lonnet/perl/lonnet.pm:1.1279	Wed Apr  1 23:22:13 2015
+++ loncom/lonnet/perl/lonnet.pm	Thu Apr  9 17:46:54 2015
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1279 2015/04/01 23:22:13 raeburn Exp $
+# $Id: lonnet.pm,v 1.1280 2015/04/09 17:46:54 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7271,13 +7271,15 @@
                                 if ($mapsymb) {
                                     if (ref($navmap)) {
                                         my $mapres = $navmap->getBySymb($mapsymb);
-                                        @to_test = $mapres->retrieveResources($mapres,undef,0,1);
+                                        @to_test = $mapres->retrieveResources($mapres);
                                         foreach my $res (@to_test) {
                                             my $symb = $res->symb();
                                             next if ($symb eq $mapsymb);
                                             if ($symb ne '') {
                                                 @interval=&EXT("resource.0.interval",$symb);
-                                                last;
+                                                if ($interval[1] eq 'map') {
+                                                    last;
+                                                }
                                             }
                                         }
                                     }




More information about the LON-CAPA-cvs mailing list