]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/calendar.pm
Merge branch 'master'
[git.ikiwiki.info.git] / IkiWiki / Plugin / calendar.pm
index 4bb4c2c2192ef857b61da9e63608dce2b58b5020..aed087eed58248d5da153543dba03abba17b5ef0 100644 (file)
@@ -390,7 +390,8 @@ sub needsbuild (@) { #{{{
                                # the current day
                                push @$needsbuild, $pagesources{$page};
                        }
                                # the current day
                                push @$needsbuild, $pagesources{$page};
                        }
-                       if (grep { $_ eq $pagesources{$page} } @$needsbuild) {
+                       if (exists $pagesources{$page} && 
+                           grep { $_ eq $pagesources{$page} } @$needsbuild) {
                                # remove state, will be re-added if
                                # the calendar is still there during the
                                # rebuild
                                # remove state, will be re-added if
                                # the calendar is still there during the
                                # rebuild