diff options
author | lpsolit%gmail.com <> | 2006-06-20 00:30:23 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-20 00:30:23 +0000 |
commit | a97d48ec24e5e7d931bd8a0dc39c597ce758d106 (patch) | |
tree | 286ae60acc70da143f2c662a4949dd144120263d /globals.pl | |
parent | 5510427a679157e889aa1bb170e2b9254aed6c49 (diff) | |
download | bugs-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.tar bugs-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.tar.gz bugs-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.tar.bz2 bugs-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.tar.xz bugs-a97d48ec24e5e7d931bd8a0dc39c597ce758d106.zip |
Bug 338793: Remove DBID_to_name() from globals.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=vladd a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/globals.pl b/globals.pl index b4c71a28e..a1e87eec2 100644 --- a/globals.pl +++ b/globals.pl @@ -138,28 +138,6 @@ sub GetVersionTable { $::VersionTableLoaded = 1; } -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; - } else { - $::cachedNameArray{$id} = "__UNKNOWN__"; - } - if (!defined $::cachedNameArray{$id}) { - PushGlobalSQLState(); - SendSQL("SELECT login_name FROM profiles WHERE userid = $id"); - my $r = FetchOneColumn(); - PopGlobalSQLState(); - if (!defined $r || $r eq "") { - $r = "__UNKNOWN__"; - } - $::cachedNameArray{$id} = $r; - } - return $::cachedNameArray{$id}; -} - # Returns a list of all the legal values for a field that has a # list of legal values, like rep_platform or resolution. sub get_legal_field_values { |