[Koha-bugs] [Bug 7630] Warning on moremember.pl about param without key

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 29 16:13:07 CEST 2012


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

--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 10563
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10563&action=edit
Proposed Patch to the BUG

After getting a DEV install set up, I tweaked moremember.pl as described.
To trigger the error:
- Staff Client
- Login
- Patrons
- Search for a patron somehow and then look at their details.
- When moremember.pl is called, because there is no $error, it will trigger:
[Fri Jun 29 21:37:32 2012] [error] [client 192.168.69.34] [Fri Jun 29 21:37:32
2012] moremember.pl: Problem = a value of 1 has been passed to param without
key at /home/koha/kohaclone/C4/Templates.pm line 187., referer:
http://192.168.69.37:8080/

By moving the "$error => 1" to a conditional $template->param(), the error log
no longer gets spammed.

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


More information about the Koha-bugs mailing list