--- loncom/interface/lonsearchcat.pm 2005/04/07 06:59:55 1.244 +++ loncom/interface/lonsearchcat.pm 2005/04/07 07:34:52 1.245 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.244 2005/04/07 06:59:55 albertel Exp $ +# $Id: lonsearchcat.pm,v 1.245 2005/04/07 07:34:52 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1557,12 +1557,7 @@ sub parse_domain_restrictions { if (! exists($env{'form.domains'}) || $env{'form.domains'} eq '') { return (undef,'',undef); } - my @allowed_domains; - if (ref($env{'form.domains'})) { - @allowed_domains = @{$env{'form.domains'}}; - } else { - @allowed_domains = ($env{'form.domains'}); - } + my @allowed_domains = &Apache::loncommon::get_env_multiple('form.domains'); # my %domain_hash = (); my $pretty_domains_string;