[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-cvs
Subject:    [LON-CAPA-cvs] cvs: loncom(version_2_2_X) /lonnet/perl lonnet.pm
From:       albertel <lon-capa-cvs () mail ! lon-capa ! org>
Date:       2006-09-28 18:23:33
Message-ID: cvsalbertel1159467813 () cvsserver
[Download RAW message or body]

albertel		Thu Sep 28 14:23:33 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - prevent some startup warnings
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.782.2.1 loncom/lonnet/perl/lonnet.pm:1.782.2.2
--- loncom/lonnet/perl/lonnet.pm:1.782.2.1	Wed Sep 27 21:42:32 2006
+++ loncom/lonnet/perl/lonnet.pm	Thu Sep 28 14:23:32 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.782.2.1 2006/09/28 01:42:32 albertel Exp $
+# $Id: lonnet.pm,v 1.782.2.2 2006/09/28 18:23:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -7229,7 +7229,7 @@
        chomp($configline);
        if ($configline) {
 	   my ($host,$type) = split(':',$configline,2);
-	   if ($type eq '') { $type = 'default' };
+	   if (!defined($type) || $type eq '') { $type = 'default' };
 	   push(@{ $spareid{$type} }, $host);
        }
     }


_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic