[Koha-patches] [PATCH 2/2] [SIGNED-OFF] Bug 5957 follow-up: use comparison operator in if

Claire Hernandez claire.hernandez at biblibre.com
Tue Apr 5 17:49:35 CEST 2011


From: Jared Camins-Esakov <jcamins at bywatersolutions.com>

The patch for bug 5957 used an assignment operator instead of a comparison
operator. Replace the assignment operator with the string comparison that was
desired.

Signed-off-by: Claire Hernandez <claire.hernandez at biblibre.com>
---
 opac/opac-search.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opac/opac-search.pl b/opac/opac-search.pl
index e2725fa..c30ee21 100755
--- a/opac/opac-search.pl
+++ b/opac/opac-search.pl
@@ -84,7 +84,7 @@ else {
     authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
     }
 );
-if ($template_name = 'opac-results.tmpl') {
+if ($template_name eq 'opac-results.tmpl') {
    $template->param('COinSinOPACResults' => C4::Context->preference('COinSinOPACResults'));
 }
 
-- 
1.7.1



More information about the Koha-patches mailing list