Bug 6060

Summary: opac-search.pl: Found = in conditional, should be ==
Product: Koha Reporter: Magnus Enger <magnus>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: minor    
Priority: P5 - low CC: jcamins
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Magnus Enger 2011-04-05 12:16:57 UTC
Running "perl opac/opac-search.pl" gives this error: 

Found = in conditional, should be == at /home/magnus/koha/opac/opac-search.pl line 87.

The interesting bit looks like this: 

87 if ($template_name = 'opac-results.tmpl') {
88    $template->param('COinSinOPACResults' => C4::Context->preference('COinSinOPACResults'));
89 }

Line 87 should probably look like this? 

if ($template_name eq 'opac-results.tmpl') {
Comment 1 Jared Camins-Esakov 2011-04-05 12:25:23 UTC
I just sent a follow-up patch for this attached to bug 5957.
Comment 2 Magnus Enger 2011-04-05 12:52:26 UTC

*** This bug has been marked as a duplicate of bug 5957 ***