]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 276913: Uninitialized value message from CGI.pl line 176
authortravis%sedsystems.ca <>
Sat, 8 Jan 2005 05:10:00 +0000 (05:10 +0000)
committertravis%sedsystems.ca <>
Sat, 8 Jan 2005 05:10:00 +0000 (05:10 +0000)
Patch: LpSolit@netscape.net  r=mkanat  a=justdave

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 163c83a562d29f1d91396730b87e9d602e9e6f38..c1a9259bd7ece2fd087ef20ed1515ebabddab5ea 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -173,7 +173,7 @@ sub ValidateBugID {
     FetchOneColumn()
       || ThrowUserError("invalid_bug_id_non_existent", {'bug_id' => $id});
 
-    return if ($field eq "dependson" || $field eq "blocked");
+    return if (defined $field && ($field eq "dependson" || $field eq "blocked"));
     
     return if Bugzilla->user->can_see_bug($id);