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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 28 Jan 2003 00:09:57 -0000


albertel		Mon Jan 27 19:09:57 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - checking for existance not for truth
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.319 loncom/lonnet/perl/lonnet.pm:1.320
--- loncom/lonnet/perl/lonnet.pm:1.319	Wed Jan 15 14:34:03 2003
+++ loncom/lonnet/perl/lonnet.pm	Mon Jan 27 19:09:57 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.319 2003/01/15 19:34:03 matthew Exp $
+# $Id: lonnet.pm,v 1.320 2003/01/28 00:09:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2817,14 +2817,14 @@
     } else {
 	$courseid=$ENV{'request.course.id'};
     }
-
     my ($realm,$space,$qualifier,@therest)=split(/\./,$varname);
     my $rest;
-    if ($therest[0]) {
+    if (defined($therest[0])) {
        $rest=join('.',@therest);
     } else {
        $rest='';
     }
+
     my $qualifierrest=$qualifier;
     if ($rest) { $qualifierrest.='.'.$rest; }
     my $spacequalifierrest=$space;