--- loncom/interface/coursecatalog.pm 2018/09/18 02:18:43 1.96 +++ loncom/interface/coursecatalog.pm 2018/12/27 20:10:31 1.98 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for displaying the course catalog interface # -# $Id: coursecatalog.pm,v 1.96 2018/09/18 02:18:43 raeburn Exp $ +# $Id: coursecatalog.pm,v 1.98 2018/12/27 20:10:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -192,7 +192,9 @@ sub handler { if ($courseinfo{$codedom.'_'.$cnum}{'showsyllabus'}) { my $usehttp = 0; if (($ENV{'SERVER_PORT'} == 443) && ($courseinfo{$codedom.'_'.$cnum}{'extsyllplain'})) { - $usehttp = 1; + unless (&Apache::lonnet::uses_sts()) { + $usehttp = 1; + } } $r->print(' '. ''. @@ -1678,7 +1680,9 @@ sub courseinfo_row { if ($showsyllabus) { my $usehttp = 0; if (($ENV{'SERVER_PORT'} == 443) && ($extsyllplain)) { - $usehttp = 1; + unless (&Apache::lonnet::uses_sts()) { + $usehttp = 1; + } } $output .= ''.&mt('Syllabus').''; } else { @@ -1776,7 +1780,6 @@ sub get_valid_classes { \%possclasses); if (keys(%okclasses)) { foreach my $sec (@sections) { - my $class = $crscode.$sec; if ($okclasses{$crscode.$sec}) { if (!grep(/^\Q$sec$\E/,@{$validations{'sections'}})) { push(@{$validations{'sections'}},$sec);