From ce029bfe044445d3d1fc10926c2ab6b9305753e0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 15 Jun 2008 18:10:47 -0400 Subject: check that parent hash exists, to avoid creating it --- IkiWiki/Plugin/map.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'IkiWiki') 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}}; } -- cgit v1.2.3