Commit 7cb4f97e authored by terry%netscape.com's avatar terry%netscape.com

Whoops; a bad username was causing perl warning messages.

parent 22b55f1b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment