fix an uninitialised value warning
parent
a61cf7a0d4
commit
1fb1d6c183
|
@ -353,7 +353,7 @@ sub cgi_editpage ($$) { #{{{
|
||||||
if (defined $type && length $type && $hooks{htmlize}{$type}) {
|
if (defined $type && length $type && $hooks{htmlize}{$type}) {
|
||||||
$type=possibly_foolish_untaint($type);
|
$type=possibly_foolish_untaint($type);
|
||||||
}
|
}
|
||||||
elsif (defined $from) {
|
elsif (defined $from && exists $pagesources{$from}) {
|
||||||
# favor the type of linking page
|
# favor the type of linking page
|
||||||
$type=pagetype($pagesources{$from});
|
$type=pagetype($pagesources{$from});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue