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

raeburn raeburn at source.lon-capa.org
Sun Feb 23 22:04:58 EST 2014


raeburn		Mon Feb 24 03:04:58 2014 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - ref to scalar $where only set if role is defined. 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1250 loncom/lonnet/perl/lonnet.pm:1.1251
--- loncom/lonnet/perl/lonnet.pm:1.1250	Sun Feb 23 20:53:03 2014
+++ loncom/lonnet/perl/lonnet.pm	Mon Feb 24 03:04:58 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1250 2014/02/23 20:53:03 raeburn Exp $
+# $Id: lonnet.pm,v 1.1251 2014/02/24 03:04:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5338,8 +5338,8 @@
     if (exists($env{$rolekey}) && $env{$rolekey} ne '') {
         my ($one,$two) = split(m{\./},$rolekey,2);
         (undef,undef,$$role) = split(/\./,$one,3);
-        $$where = '/'.$two;
         unless (!defined($$role) || $$role eq '') {
+            $$where = '/'.$two;
             $$trolecode=$$role.'.'.$$where;
             ($$tstart,$$tend)=split(/\./,$env{$rolekey});
             $$tstatus='is';




More information about the LON-CAPA-cvs mailing list