--- loncom/interface/lonsearchcat.pm 2005/02/02 21:27:28 1.230.2.2 +++ loncom/interface/lonsearchcat.pm 2005/02/02 22:03:27 1.230.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.230.2.2 2005/02/02 21:27:28 albertel Exp $ +# $Id: lonsearchcat.pm,v 1.230.2.3 2005/02/02 22:03:27 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -554,8 +554,8 @@ sub checkonthis { # Check also the dependencies of this one my $dependencies= &Apache::lonnet::metadata($url,'dependencies'); - foreach (split(/\,/,$dependencies) && (!$alreadyseen{$id})) { - if (($_=~/^\/res\//)) { + foreach (split(/\,/,$dependencies)) { + if (($_=~/^\/res\//) && (!$alreadyseen{$id})) { &checkonthis($r,$id,$_,$level+1,'',$fulltext,undef,@allwords); } }