diff options
Diffstat (limited to 'Bugzilla/Bug.pm')
-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); |