diff options
author | lpsolit%gmail.com <> | 2006-04-13 07:56:05 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-04-13 07:56:05 +0200 |
commit | a3cf3b1a50a2e0434aa051171b1337076bdf1540 (patch) | |
tree | 1cf02c343d67206533b4e88543602a27c23472f7 /Bugzilla | |
parent | e416c1d9b9155efbcbdbe6dc8180e8f6b961b1e0 (diff) | |
download | bugzilla-a3cf3b1a50a2e0434aa051171b1337076bdf1540.tar.gz bugzilla-a3cf3b1a50a2e0434aa051171b1337076bdf1540.tar.xz |
Bug 333031: Uninitialized value when entering a new bug and an alias is given - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 42bfe8664..445e13ec6 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1198,7 +1198,7 @@ sub ValidateBugAlias { # Make sure the alias is unique. my $query = "SELECT bug_id FROM bugs WHERE alias = ?"; - if (detaint_natural($curr_id)) { + if ($curr_id && detaint_natural($curr_id)) { $query .= " AND bug_id != $curr_id"; } my $id = $dbh->selectrow_array($query, undef, $alias); |