summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-09-16 07:12:52 +0200
committerterry%netscape.com <>1998-09-16 07:12:52 +0200
commit7cb4f97e7cd232dafc6ce3217a2f82279ee2bc2c (patch)
treecb63eda6f51a7a41792eb8373815ccf614994138 /globals.pl
parent22b55f1b2ac1504a36a9f6b96dc86266471ddb1e (diff)
downloadbugzilla-7cb4f97e7cd232dafc6ce3217a2f82279ee2bc2c.tar.gz
bugzilla-7cb4f97e7cd232dafc6ce3217a2f82279ee2bc2c.tar.xz
Whoops; a bad username was causing perl warning messages.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 1a6990ac5..194d00d07 100644
--- a/globals.pl
+++ b/globals.pl
@@ -348,7 +348,7 @@ sub DBname_to_id {
my ($name) = (@_);
SendSQL("select userid from profiles where login_name = @{[SqlQuote($name)]}");
my $r = FetchOneColumn();
- if ($r eq "") {
+ if (!defined $r || $r eq "") {
return 0;
}
return $r;