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

raeburn raeburn@source.lon-capa.org
Mon, 19 Oct 2009 23:16:36 -0000


raeburn		Mon Oct 19 23:16:36 2009 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - Courses which have never had activity should not show up in course searches
     filtered by course activity today, last week etc.
  
  
Index: loncom/lond
diff -u loncom/lond:1.428 loncom/lond:1.429
--- loncom/lond:1.428	Thu Oct  8 19:54:26 2009
+++ loncom/lond	Mon Oct 19 23:16:36 2009
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.428 2009/10/08 19:54:26 raeburn Exp $
+# $Id: lond,v 1.429 2009/10/19 23:16:36 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.428 $'; #' stupid emacs
+my $VERSION='$Revision: 1.429 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -3826,6 +3826,9 @@
             my ($canclone,$valchange);
             my $items = &Apache::lonnet::thaw_unescape($value);
             if (ref($items) eq 'HASH') {
+                if ($hashref->{$lasttime_key} eq '') {
+                    next if ($since > 0);
+                }
                 $is_hash =  1;
                 if (defined($clonerudom)) {
                     if ($items->{'cloners'}) {