[LON-CAPA-cvs] cvs: loncom /interface lonwhatsnew.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Wed, 09 Jul 2008 15:16:18 -0000
raeburn Wed Jul 9 11:16:18 2008 EDT
Modified files:
/loncom/interface lonwhatsnew.pm
Log:
- Time interval was not interpreted correctly in &getactivated() in one case.
- $rolechgtime is the earliest time to look for role changes.
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.78 loncom/interface/lonwhatsnew.pm:1.79
--- loncom/interface/lonwhatsnew.pm:1.78 Thu Jun 19 11:51:39 2008
+++ loncom/interface/lonwhatsnew.pm Wed Jul 9 11:16:14 2008
@@ -1,5 +1,5 @@
#
-# $Id: lonwhatsnew.pm,v 1.78 2008/06/19 15:51:39 bisitz Exp $
+# $Id: lonwhatsnew.pm,v 1.79 2008/07/09 15:16:14 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1220,8 +1220,8 @@
if (ref($changes{$chg}) eq 'HASH') {
my $timestamp = $changes{$chg}{'exe_time'};
if ($timestamp) {
- if ($rolechgtime > -1) {
- if ($now - $rolechgtime < $timestamp) {
+ if ($rolechgtime > 0) {
+ if ($timestamp < $rolechgtime) {
last;
}
}