From 7f0a326da5bb347310e60103bd3486b22a495743 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 17 Mar 2011 10:34:52 +0000 Subject: [PATCH] Bug 5890 Correct Mismatched operator in comparison Signed-off-by: Chris Cormack --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 39eb50fe91..06806ff065 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -232,7 +232,7 @@ sub get_template_and_user { } # Logged-in opac search history # If the requested template is an opac one and opac search history is enabled - if ($in->{'type'} == "opac" && C4::Context->preference('EnableOpacSearchHistory')) { + if ($in->{type} eq 'opac' && C4::Context->preference('EnableOpacSearchHistory')) { my $dbh = C4::Context->dbh; my $query = "SELECT COUNT(*) FROM search_history WHERE userid=?"; my $sth = $dbh->prepare($query); -- 2.39.5