Lines 232-238
sub get_template_and_user {
Link Here
|
232 |
} |
232 |
} |
233 |
# Logged-in opac search history |
233 |
# Logged-in opac search history |
234 |
# If the requested template is an opac one and opac search history is enabled |
234 |
# If the requested template is an opac one and opac search history is enabled |
235 |
if ($in->{'type'} == "opac" && C4::Context->preference('EnableOpacSearchHistory')) { |
235 |
if ($in->{type} eq 'opac' && C4::Context->preference('EnableOpacSearchHistory')) { |
236 |
my $dbh = C4::Context->dbh; |
236 |
my $dbh = C4::Context->dbh; |
237 |
my $query = "SELECT COUNT(*) FROM search_history WHERE userid=?"; |
237 |
my $query = "SELECT COUNT(*) FROM search_history WHERE userid=?"; |
238 |
my $sth = $dbh->prepare($query); |
238 |
my $sth = $dbh->prepare($query); |
239 |
- |
|
|