Bugzilla – Attachment 12318 Details for
Bug 8772
Uninitialized variable triggers error log entry in smart_rules.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added "|| q{}" into variable declaration/initialization
0001-Bug-8772-Uninitialized-variable-triggers-error-log-e.patch (text/plain), 1.04 KB, created by
Mark Tompsett
on 2012-09-18 16:16:14 UTC
(
hide
)
Description:
Added "|| q{}" into variable declaration/initialization
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2012-09-18 16:16:14 UTC
Size:
1.04 KB
patch
obsolete
>From 1fea3a2f501ca82fa18eb50237866b708f9ea2ac Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Wed, 19 Sep 2012 00:05:24 +0800 >Subject: [PATCH] Bug 8772 - Uninitialized variable triggers error log entry > in smart_rules.pl >Content-Type: text/plain; charset="utf-8" > >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. >--- > admin/smart-rules.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl >index f45ea43..c221d71 100755 >--- a/admin/smart-rules.pl >+++ b/admin/smart-rules.pl >@@ -44,7 +44,7 @@ my ($template, $loggedinuser, $cookie) > > my $type=$input->param('type'); > my $branch = $input->param('branch') || ( C4::Branch::onlymine() ? ( C4::Branch::mybranch() || '*' ) : '*' ); >-my $op = $input->param('op'); >+my $op = $input->param('op') || q{}; > > if ($op eq 'delete') { > my $itemtype = $input->param('itemtype'); >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8772
:
12318
|
12320