[LON-CAPA-cvs] cvs: loncom(version_1_2_X) /interface lonsearchcat.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 02 Feb 2005 22:03:27 -0000


albertel		Wed Feb  2 17:03:27 2005 EDT

  Modified files:              (Branch: version_1_2_X)
    /loncom/interface	lonsearchcat.pm 
  Log:
  - backport 1.237
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.230.2.2 loncom/interface/lonsearchcat.pm:1.230.2.3
--- loncom/interface/lonsearchcat.pm:1.230.2.2	Wed Feb  2 16:27:28 2005
+++ loncom/interface/lonsearchcat.pm	Wed Feb  2 17:03:27 2005
@@ -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 @@
 # 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);
        }
     }