[LON-CAPA-cvs] cvs: loncom(version_2_3_X) /metadata_database searchcat.pl

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 03 Jan 2007 04:01:34 -0000


albertel		Tue Jan  2 23:01:34 2007 EDT

  Modified files:              (Branch: version_2_3_X)
    /loncom/metadata_database	searchcat.pl 
  Log:
  - backport 1.74
  
  
Index: loncom/metadata_database/searchcat.pl
diff -u loncom/metadata_database/searchcat.pl:1.70.2.2 loncom/metadata_database/searchcat.pl:1.70.2.3
--- loncom/metadata_database/searchcat.pl:1.70.2.2	Tue Jan  2 22:59:48 2007
+++ loncom/metadata_database/searchcat.pl	Tue Jan  2 23:01:32 2007
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # searchcat.pl "Search Catalog" batch script
 #
-# $Id: searchcat.pl,v 1.70.2.2 2007/01/03 03:59:48 albertel Exp $
+# $Id: searchcat.pl,v 1.70.2.3 2007/01/03 04:01:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -613,7 +613,7 @@
         $metacache{'owner'} = $uname.':'.$dom;
         $metacache{'domain'} = $dom;
         $metacache{'mime'} = $mime;
-        if (defined($group)) {
+        if ($group ne '') {
             $metacache{'keys'} .= ',courserestricted';
             $metacache{'courserestricted'} = 'course.'.$dom.'_'.$uname;
         }