]> git.koha-community.org Git - koha.git/commit
Bug 8772 - Uninitialized variable triggers error log entry in smart_rules.pl
authorMark Tompsett <mtompset@hotmail.com>
Tue, 18 Sep 2012 16:05:24 +0000 (00:05 +0800)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 13 Oct 2012 02:01:14 +0000 (22:01 -0400)
commit8ec4beb4df465e2c2b8a5403a00949a092810a76
tree89b462ad8d71e6303eaf27a0c33f00f3c349a0c3
parent5f7287dfa4d5a7b7a32bac476b067c7bfc9ac041
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@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.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
admin/smart-rules.pl