[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 28 Mar 2005 17:54:06 -0000
albertel Mon Mar 28 12:54:06 2005 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- don't blow up on non-existant slots
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.615 loncom/lonnet/perl/lonnet.pm:1.616
--- loncom/lonnet/perl/lonnet.pm:1.615 Tue Mar 22 11:49:25 2005
+++ loncom/lonnet/perl/lonnet.pm Mon Mar 28 12:54:06 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.615 2005/03/22 16:49:25 albertel Exp $
+# $Id: lonnet.pm,v 1.616 2005/03/28 17:54:06 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -4713,7 +4713,10 @@
&Apache::lonhomework::showhash(%slotinfo);
my ($tmp)=keys(%slotinfo);
if ($tmp=~/^error:/) { return (); }
- return %{$slotinfo{$which}};
+ if (ref($slotinfo{$which}) eq 'HASH') {
+ return %{$slotinfo{$which}};
+ }
+ return $slotinfo{$which};
}
# ------------------------------------------------- Update symbolic store links