summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 6e0ebd774..ec7d39693 100644
--- a/globals.pl
+++ b/globals.pl
@@ -595,6 +595,7 @@ sub ValidatePassword {
sub DBID_to_name {
my ($id) = (@_);
+ return "__UNKNOWN__" if !defined $id;
# $id should always be a positive integer
if ($id =~ m/^([1-9][0-9]*)$/) {
$id = $1;