--- loncom/interface/lonpickcourse.pm 2004/11/27 17:23:09 1.20 +++ loncom/interface/lonpickcourse.pm 2004/11/30 00:21:24 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.20 2004/11/27 17:23:09 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.21 2004/11/30 00:21:24 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -90,7 +90,6 @@ ENDDOCUMENT # if called from loncreateuser, report sections, then close my ($loaditem,$seclist); my $num_sections = 0; - my @sections = (); if ($ENV{'form.form'} eq 'cu' && $ENV{'form.pickedcourse'}) { $loaditem = 'onLoad="setSections()"'; my ($cdom,$cnum) = split/_/,$ENV{'form.pickedcourse'}; @@ -154,7 +153,7 @@ function setSections() { var sectionsArray = new Array("$seclist") opener.document.$ENV{"form.form"}.currsec.length = 0 if (numSections == 0) { - opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('No existing sections','-1',false,false) + opener.document.$ENV{"form.form"}.currsec.options[0] = new Option('No existing sections','',false,false) } else { for (var i=0; i