From ce029bfe044445d3d1fc10926c2ab6b9305753e0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 15 Jun 2008 18:10:47 -0400 Subject: [PATCH] check that parent hash exists, to avoid creating it --- IkiWiki/Plugin/map.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm index f7ab291c7..22f75b9e5 100644 --- a/IkiWiki/Plugin/map.pm +++ b/IkiWiki/Plugin/map.pm @@ -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}}; } -- 2.45.0