logic fix

master
Joey Hess 2007-12-08 23:57:25 -05:00
parent 5023f2301d
commit e78c25d1b2
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ sub needsbuild (@) { #{{{
my $needsbuild=shift; my $needsbuild=shift;
foreach my $page (keys %pagestate) { foreach my $page (keys %pagestate) {
if (exists $pagestate{$page}{calendar}{nextchange}) { if (exists $pagestate{$page}{calendar}{nextchange}) {
if ($pagestate{$page}{calendar}{nextchange} >= $time) { if ($pagestate{$page}{calendar}{nextchange} <= $time) {
# force a rebuild so the calendar shows # force a rebuild so the calendar shows
# the current day # the current day
push @$needsbuild, $pagesources{$page}; push @$needsbuild, $pagesources{$page};