[Koha-patches] [PATCH] Bug 5957 follow-up: use comparison operator in if
Jared Camins-Esakov
jcamins at bywatersolutions.com
Tue Apr 5 14:07:15 CEST 2011
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.
---
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.2.3
More information about the Koha-patches
mailing list