[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

raeburn raeburn at source.lon-capa.org
Wed Dec 10 20:16:34 EST 2014


raeburn		Thu Dec 11 01:16:34 2014 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Coding style: keys()
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1201 loncom/interface/loncommon.pm:1.1202
--- loncom/interface/loncommon.pm:1.1201	Mon Dec  1 22:52:48 2014
+++ loncom/interface/loncommon.pm	Thu Dec 11 01:16:33 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1201 2014/12/01 22:52:48 raeburn Exp $
+# $Id: loncommon.pm,v 1.1202 2014/12/11 01:16:33 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -8386,7 +8386,7 @@
 sub check_user_status {
     my ($udom,$uname,$cdom,$crs,$role,$sec) = @_;
     my %userinfo = &Apache::lonnet::dump('roles',$udom,$uname);
-    my @uroles = keys %userinfo;
+    my @uroles = keys(%userinfo);
     my $srchstr;
     my $active_chk = 'none';
     my $now = time;




More information about the LON-CAPA-cvs mailing list