Bug 6060 - opac-search.pl: Found = in conditional, should be ==
Summary: opac-search.pl: Found = in conditional, should be ==
Status: CLOSED DUPLICATE of bug 5957
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor (vote)
Assignee: Owen Leonard
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 12:16 UTC by Magnus Enger
Modified: 2012-10-26 00:40 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***