[LON-CAPA-cvs] cvs: loncom / lond

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 21 Feb 2006 18:43:38 -0000


albertel		Tue Feb 21 13:43:38 2006 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - need to check for definition of $hashref
  
  
Index: loncom/lond
diff -u loncom/lond:1.320 loncom/lond:1.321
--- loncom/lond:1.320	Fri Feb 10 04:47:36 2006
+++ loncom/lond	Tue Feb 21 13:43:37 2006
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.320 2006/02/10 09:47:36 albertel Exp $
+# $Id: lond,v 1.321 2006/02/21 18:43:37 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -61,7 +61,7 @@
 my $lastlog='';
 my $lond_max_wait_time = 13;
 
-my $VERSION='$Revision: 1.320 $'; #' stupid emacs
+my $VERSION='$Revision: 1.321 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -5503,8 +5503,11 @@
 
     #  Author role should show up as a key /domain/_au
 
-    my $key   = "/$domain/_au";
-    my $value = $hashref->{$key};
+    my $key    = "/$domain/_au";
+    my $value;
+    if (defined($hashref)) {
+	$value = $hashref->{$key};
+    }
 
     if(defined($value)) {
 	&Debug("$user @ $domain is an author");