[Koha-bugs] [Bug 8772] Uninitialized variable triggers error log entry in smart_rules.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 18 20:06:02 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8772

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #12318|0                           |1
        is obsolete|                            |

--- Comment #2 from Marc Véron <veron at veron.ch> ---
Created attachment 12320
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12320&action=edit
[SIGNED-OFF] Bug 8772 - Uninitialized variable triggers error log entry in
smart_rules.pl

Changed declartion from:
  my $op = $input->param('op');
to
  my $op = $input->param('op') || q{};
in order to give an empty string default preventing error
logs from filling needlessly.

Signed-off-by: Marc Veron <veron at veron.ch>

The patch removes warnings like:
Use of uninitialized value $op in string eq at...

However there is one more warning, but it is not related to $op (addressed by
this patch):
smart-rules.pl: Use of uninitialized value in string ne at
.../admin/smart-rules.pl line 388.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list