summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-05 01:47:04 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-05 01:47:04 -0500
commit1fb1d6c1830a3d80bd6940bc2b24ca4f673e1bed (patch)
tree70846f3017fb099b9aa72b203436258d2ef263a3
parenta61cf7a0d4711054ec8d263ccd3eead5f87b52d8 (diff)
fix an uninitialised value warning
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 35c62ce3e..1522feb1e 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -353,7 +353,7 @@ sub cgi_editpage ($$) { #{{{
if (defined $type && length $type && $hooks{htmlize}{$type}) {
$type=possibly_foolish_untaint($type);
}
- elsif (defined $from) {
+ elsif (defined $from && exists $pagesources{$from}) {
# favor the type of linking page
$type=pagetype($pagesources{$from});
}