]> 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:13:34 +0000 (05:13 +0000)
committertravis%sedsystems.ca <>
Sat, 8 Jan 2005 05:13:34 +0000 (05:13 +0000)
Patch: LpSolit@netscape.net  r=mkanat  a=justdave

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 28f3ed60be13ec2093d549bd4cc7a28dcada1c9b..17ea0e1e2275c6d05f242a33e7bb197cf870ad00 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 CanSeeBug($id, $::userid);