[LON-CAPA-cvs] cvs: loncom / lond

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Thu, 26 Jun 2008 23:52:02 -0000


raeburn		Thu Jun 26 19:52:02 2008 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Check for a specific value (yes) of "hidefromcat" entry in nohist_courseids.db to exclude from matched courses. 
  
  
Index: loncom/lond
diff -u loncom/lond:1.404 loncom/lond:1.405
--- loncom/lond:1.404	Thu Jun 26 15:54:15 2008
+++ loncom/lond	Thu Jun 26 19:51:59 2008
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.404 2008/06/26 19:54:15 raeburn Exp $
+# $Id: lond,v 1.405 2008/06/26 23:51:59 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.404 $'; #' stupid emacs
+my $VERSION='$Revision: 1.405 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -3724,8 +3724,8 @@
                     next if ($items->{'category'} ne $catfilter);
                 }
                 if ($caller eq 'coursecatalog') {
-                    if (!$showhidden) {
-                        next if ($items->{'hidefromcat'});
+                    if ($items->{'hidefromcat'} eq 'yes') {
+                        next if !$showhidden;
                     }
                 }
             } else {