diff options
author | gerv%gerv.net <> | 2004-02-14 05:24:51 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2004-02-14 05:24:51 +0100 |
commit | 71979bcbe3e1edaab5ca8ef8e22b43b1296a6136 (patch) | |
tree | 6e2a7d009e2b6ff2a28dc8e65e5e5a9ef3561a35 /globals.pl | |
parent | 085e13753bd51da6eaa16ec1e2e4e88975e34a78 (diff) | |
download | bugzilla-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.tar.gz bugzilla-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.tar.xz |
Bug 233645 - fix a number of 'undef' warnings which were killing performance for multiple bug change. Patch by gerv; r,a=justdave.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl index 825c30af7..9c1b9a7ef 100644 --- a/globals.pl +++ b/globals.pl @@ -829,7 +829,7 @@ sub get_product_name { sub get_component_id { my ($prod_id, $comp) = @_; - return undef unless ($prod_id =~ /^\d+$/); + return undef unless ($prod_id && ($prod_id =~ /^\d+$/)); PushGlobalSQLState(); SendSQL("SELECT id FROM components " . "WHERE product_id = $prod_id AND name = " . SqlQuote($comp)); |