[LON-CAPA-cvs] cvs: loncom / lond
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 30 May 2008 21:33:28 -0000
raeburn Fri May 30 17:33:28 2008 EDT
Modified files:
/loncom lond
Log:
- pop last element from @courseitems array outside loop.
Index: loncom/lond
diff -u loncom/lond:1.402 loncom/lond:1.403
--- loncom/lond:1.402 Fri May 30 15:53:16 2008
+++ loncom/lond Fri May 30 17:33:21 2008
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.402 2008/05/30 19:53:16 raeburn Exp $
+# $Id: lond,v 1.403 2008/05/30 21:33:21 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -59,7 +59,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.402 $'; #' stupid emacs
+my $VERSION='$Revision: 1.403 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -3717,8 +3717,8 @@
next if ($selfenrollonly);
$is_hash = 0;
my @courseitems = split(/:/,$value);
+ $lasttime = pop(@courseitems);
if ($hashref->{$lasttime_key} eq '') {
- $lasttime = pop(@courseitems);
next if ($lasttime<$since);
}
($val{'descr'},$val{'inst_code'},$val{'owner'},$val{'type'}) = @courseitems;