fix an uninitialised value warning

master
Joey Hess 2008-01-05 01:47:04 -05:00
parent a61cf7a0d4
commit 1fb1d6c183
1 changed files with 1 additions and 1 deletions

View File

@ -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});
}