diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-15 18:10:47 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-15 18:10:47 -0400 |
commit | ce029bfe044445d3d1fc10926c2ab6b9305753e0 (patch) | |
tree | 79a11c3af1d19acffd1122ae3e3d6fa4fc84851c /IkiWiki | |
parent | 069b10cc6a9714211fe7136ac6febf5c583e5549 (diff) |
check that parent hash exists, to avoid creating it
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/map.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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}}; } |