Bug 5890 Correct Mismatched operator in comparison

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Colin Campbell 2011-03-17 10:34:52 +00:00 committed by Chris Cormack
parent 1a5270bdd0
commit 7f0a326da5

View file

@ -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);