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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 05 May 2005 20:55:04 -0000


albertel		Thu May  5 16:55:04 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - work even if a ref isn't sent in
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.633 loncom/lonnet/perl/lonnet.pm:1.634
--- loncom/lonnet/perl/lonnet.pm:1.633	Thu May  5 16:50:38 2005
+++ loncom/lonnet/perl/lonnet.pm	Thu May  5 16:55:04 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.633 2005/05/05 20:50:38 albertel Exp $
+# $Id: lonnet.pm,v 1.634 2005/05/05 20:55:04 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3902,7 +3902,8 @@
     # unmarks $file_name (if $file_name is defined), or all files locked by $what 
     # for portfolio submissions, $what contains [$symb,$crsid] 
     my ($domain,$user,$what,$file_name) = @_;
-    my $symb_crs = join('',@$what);
+    my $symb_crs = $what;
+    if (ref($what)) { $symb_crs=join('',@$what); }
     my %current_permissions = &dump('file_permissions',$domain,$user);
     my ($tmp)=keys(%current_permissions);
     if ($tmp=~/^error:/) { undef(%current_permissions); }