]> sipb.mit.edu Git - ikiwiki.git/commitdiff
logic fix
authorJoey Hess <joey@kitenet.net>
Sun, 9 Dec 2007 04:57:25 +0000 (23:57 -0500)
committerJoey Hess <joey@kitenet.net>
Sun, 9 Dec 2007 04:57:25 +0000 (23:57 -0500)
IkiWiki/Plugin/calendar.pm

index 91aff1ea7db017277aa374e5b4777474808b3896..0bb0e81fdc77c0eaf52da7ed06c31b70cf810ce3 100644 (file)
@@ -38,7 +38,7 @@ sub needsbuild (@) { #{{{
        my $needsbuild=shift;
        foreach my $page (keys %pagestate) {
                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
                                # the current day
                                push @$needsbuild, $pagesources{$page};