diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-03-20 22:36:36 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-03-20 22:36:36 +0100 |
commit | 7431f5772abfc859f830ad9f075dfe7b210e4a31 (patch) | |
tree | e7a9f55b431a7bd6fce3eefe205c27f26642200a /Bugzilla | |
parent | 845140a6f3f4300e7dd03696eb7d65fd00c85ae1 (diff) | |
download | bugzilla-7431f5772abfc859f830ad9f075dfe7b210e4a31.tar.gz bugzilla-7431f5772abfc859f830ad9f075dfe7b210e4a31.tar.xz |
no bug - remove debugging for now
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/CGI.pm | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index cd947841e..b0bc15e78 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -600,16 +600,18 @@ sub param { # We don't let CGI.pm warn about list context, but we do it ourselves. local $CGI::LIST_CONTEXT_WARN = 0; - state $has_warned = {}; - - ## no critic (Freenode::Wantarray) - if ( wantarray && @_ ) { - my ( $package, $filename, $line ) = caller; - if ( $package ne 'CGI' && ! $has_warned->{"$filename:$line"}++) { - WARN("Bugzilla::CGI::param called in list context from $package $filename:$line"); + if (0) { + state $has_warned = {}; + + ## no critic (Freenode::Wantarray) + if ( wantarray && @_ ) { + my ( $package, $filename, $line ) = caller; + if ( $package ne 'CGI' && ! $has_warned->{"$filename:$line"}++) { + WARN("Bugzilla::CGI::param called in list context from $package $filename:$line"); + } } + ## use critic } - ## use critic # When we are just requesting the value of a parameter... if (scalar(@_) == 1) { |