]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/edittemplate.pm
Merge branch 'master' of git://git.madduck.net/code/ikiwiki
[ikiwiki.git] / IkiWiki / Plugin / edittemplate.pm
index aa72b08457616c98e1bba6ce658a2beedc1b00b6..b7651ce02b3c71ac96b4a561f3ef5e22738a6a5b 100644 (file)
@@ -21,7 +21,8 @@ sub needsbuild (@) { #{{{
 
        foreach my $page (keys %pagestate) {
                if (exists $pagestate{$page}{edittemplate}) {
-                       if (grep { $_ eq $pagesources{$page} } @$needsbuild) {
+                       if (exists $pagesources{$page} && 
+                           grep { $_ eq $pagesources{$page} } @$needsbuild) {
                                # remove state, it will be re-added
                                # if the preprocessor directive is still
                                # there during the rebuild