--- loncom/lontrans.pm 2018/05/08 15:31:22 1.23 +++ loncom/lontrans.pm 2018/07/26 19:01:25 1.24 @@ -1,7 +1,7 @@ # The LearningOnline Network # URL translation for User Files # -# $Id: lontrans.pm,v 1.23 2018/05/08 15:31:22 raeburn Exp $ +# $Id: lontrans.pm,v 1.24 2018/07/26 19:01:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -170,16 +170,16 @@ sub redirect_raw { my $remintdom = &Apache::lonnet::internet_dom($remprimary); if (ref($replication->{'certreq'}) eq 'ARRAY') { if (grep(/^\Q$remintdom\E$/,@{$replication->{'certreq'}})) { - $redirect = 1; - } else { $redirect = 0; + } else { + $redirect = 1; } } if (ref($replication->{'nocertreq'}) eq 'ARRAY') { if (grep(/^\Q$remintdom\E$/,@{$replication->{'nocertreq'}})) { - $redirect = 0; - } else { $redirect = 1; + } else { + $redirect = 0; } } } @@ -189,7 +189,7 @@ sub redirect_raw { last; } } - return $redirect; + return $redirect; } 1;