Bug 5890 Correct Mismatched operator in comparison
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
1a5270bdd0
commit
7f0a326da5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue