X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/920bb240f2bab1555b7a45cfae4f15d0ddb8df97..1783408d3a61b5bd23ee6e3bb637b6d92ac40490:/selfforum-cgi/shared/Id.pm diff --git a/selfforum-cgi/shared/Id.pm b/selfforum-cgi/shared/Id.pm index 22535a2..8e91379 100644 --- a/selfforum-cgi/shared/Id.pm +++ b/selfforum-cgi/shared/Id.pm @@ -66,6 +66,8 @@ sub unique_id () { # sub to_base64 ($) { my $x = shift; + return '' unless defined $x; + my $y = $table[$x % 64]; $y = $table[$x % 64].$y while ($x = int ($x/64));