check that parent hash exists, to avoid creating it
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 15 Jun 2008 22:10:47 +0000 (18:10 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 15 Jun 2008 22:10:47 +0000 (18:10 -0400)
IkiWiki/Plugin/map.pm

index f7ab291c7b1222b374c37b9629ff5229e2b81735..22f75b9e51081acdee3fc75fdd64136551a09041 100644 (file)
@@ -26,6 +26,7 @@ sub preprocess (@) { #{{{
        foreach my $page (keys %pagesources) {
                if (pagespec_match($page, $params{pages}, location => $params{page})) {
                        if (exists $params{show} && 
+                           exists $pagestate{$page} &&
                            exists $pagestate{$page}{meta}{$params{show}}) {
                                $mapitems{$page}=$pagestate{$page}{meta}{$params{show}};
                        }