summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-11-03 20:46:13 +0100
committerlpsolit%gmail.com <>2009-11-03 20:46:13 +0100
commited629ca0a2680ebeed503ca7d071fbf8ab8dfbec (patch)
tree700d0ae3029471f1f2f0a25bf51232055c5dd387 /Bugzilla
parente0deda7524d6389ecb93d291c4f6951039f1a086 (diff)
downloadbugzilla-ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec.tar.gz
bugzilla-ed629ca0a2680ebeed503ca7d071fbf8ab8dfbec.tar.xz
Bug 526271: Uninitialized value in can_enter_product() due to a missing argument - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 9cb53fe34..3843062fb 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -714,6 +714,7 @@ sub get_selectable_classifications {
sub can_enter_product {
my ($self, $input, $warn) = @_;
my $dbh = Bugzilla->dbh;
+ $warn ||= 0;
if (!defined $input) {
return unless $warn == THROW_ERROR;