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

raeburn raeburn at source.lon-capa.org
Mon Nov 14 13:50:42 EST 2022


raeburn		Mon Nov 14 18:50:42 2022 EDT

  Modified files:              
    /loncom/interface	lonaboutme.pm 
  Log:
  - Coding style
  
  
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.163 loncom/interface/lonaboutme.pm:1.164
--- loncom/interface/lonaboutme.pm:1.163	Sat Oct 29 14:47:00 2022
+++ loncom/interface/lonaboutme.pm	Mon Nov 14 18:50:42 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Personal Information Page
 #
-# $Id: lonaboutme.pm,v 1.163 2022/10/29 14:47:00 raeburn Exp $
+# $Id: lonaboutme.pm,v 1.164 2022/11/14 18:50:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -808,10 +808,8 @@
 sub aboutme_access {
     my ($uname,$udom) = @_;
     my $privcheck = $env{'request.course.id'};
-    my $sec;
     if ($env{'request.course.sec'} ne '') {
-        $sec = $env{'request.course.sec'};
-        $privcheck .= '/'.$sec;
+        $privcheck .= '/'.$env{'request.course.sec'};
     }
     my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
     my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};




More information about the LON-CAPA-cvs mailing list