summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-04-13 07:56:05 +0200
committerlpsolit%gmail.com <>2006-04-13 07:56:05 +0200
commita3cf3b1a50a2e0434aa051171b1337076bdf1540 (patch)
tree1cf02c343d67206533b4e88543602a27c23472f7 /Bugzilla
parente416c1d9b9155efbcbdbe6dc8180e8f6b961b1e0 (diff)
downloadbugzilla-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-xBugzilla/Bug.pm2
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);