--- rat/lonuserstate.pm 2021/04/19 20:09:07 1.161 +++ rat/lonuserstate.pm 2021/04/29 14:54:36 1.163 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construct and maintain state and binary representation of course for user # -# $Id: lonuserstate.pm,v 1.161 2021/04/19 20:09:07 raeburn Exp $ +# $Id: lonuserstate.pm,v 1.163 2021/04/29 14:54:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1452,15 +1452,15 @@ sub readmap { # more part of determining what someone sees on entering a course? # When lonuserstate::readmap() is called from lonroles.pm, i.e., # after selecting a role in a course, critical_redirect will be called, -# unless the course has a blocking event in effect, when suppresses +# unless the course has a blocking event in effect, which suppresses # critical message checking (users without evb priv). # - if ($critmsg_check) { - my ($redirect,$url) = &Apache::loncommon::critical_redirect(); - if ($redirect) { - $retfurl = $url; - } + if ($critmsg_check) { + my ($redirect,$url) = &Apache::loncommon::critical_redirect(); + if ($redirect) { + $retfurl = $url; + } } return ($retfurl,$errtext); }