Guard against empty non existant page id key value
This commit is contained in:
parent
74b806f712
commit
2a61d89907
@ -238,7 +238,10 @@ sub get_filename {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$filename = $$config{'filename'};
|
$filename = $$config{'filename'};
|
||||||
my $padded_index = sprintf("%04d", $$config{'id'});
|
my $padded_index = "";
|
||||||
|
if ($$config{'id'}) {
|
||||||
|
$padded_index = sprintf("%04d", $$config{'id'});
|
||||||
|
}
|
||||||
$filename =~ s/\[id\]/$padded_index/;
|
$filename =~ s/\[id\]/$padded_index/;
|
||||||
return $filename;
|
return $filename;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user