aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-07 13:25:32 -0400
committerJoey Hess <joey@kitenet.net>2010-05-07 13:25:32 -0400
commitb01a2274c3f96541b8b48f9ebb883ee8b7451fa3 (patch)
treed417e471ada318bf37fa67f0724e2b1bc61b5ba6 /IkiWiki.pm
parent888ac35e11a22fe254127f2c39d71909038494c9 (diff)
downloadikiwiki-b01a2274c3f96541b8b48f9ebb883ee8b7451fa3.tar
ikiwiki-b01a2274c3f96541b8b48f9ebb883ee8b7451fa3.tar.gz
fix undef warning when page() tests a deleted file
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 11cfcdfd2..d76b5edb4 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2348,7 +2348,8 @@ sub match_internal ($$;@) {
sub match_page ($$;@) {
my $page=shift;
my $match=match_glob($page, shift, @_);
- if ($match && ! defined IkiWiki::pagetype($IkiWiki::pagesources{$page})) {
+ if ($match && ! (exists $IkiWiki::pagesources{$page}
+ && defined IkiWiki::pagetype($IkiWiki::pagesources{$page}))) {
return IkiWiki::FailReason->new("$page is not a page");
}
else {