View | Details | Raw Unified | Return to bug 5890
Collapse All | Expand All

(-)a/C4/Auth.pm (-2 / +1 lines)
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
- 

Return to bug 5890