--- loncom/interface/lonsearchcat.pm 2005/02/02 21:08:23 1.236 +++ loncom/interface/lonsearchcat.pm 2005/02/02 22:02:41 1.237 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Search Catalog # -# $Id: lonsearchcat.pm,v 1.236 2005/02/02 21:08:23 albertel Exp $ +# $Id: lonsearchcat.pm,v 1.237 2005/02/02 22:02:41 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -625,8 +625,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); } }