aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-15 18:10:47 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-15 18:10:47 -0400
commitce029bfe044445d3d1fc10926c2ab6b9305753e0 (patch)
tree79a11c3af1d19acffd1122ae3e3d6fa4fc84851c /IkiWiki/Plugin
parent069b10cc6a9714211fe7136ac6febf5c583e5549 (diff)
downloadikiwiki-ce029bfe044445d3d1fc10926c2ab6b9305753e0.tar
ikiwiki-ce029bfe044445d3d1fc10926c2ab6b9305753e0.tar.gz
check that parent hash exists, to avoid creating it
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/map.pm1
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}};
}