Bug 7977: Removing unused code from quotes_ajax.pl

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Chris Nighswonger 2012-05-11 07:42:06 -04:00 committed by Paul Poulain
parent d78641e7c0
commit 5c6129687b
1 changed files with 2 additions and 9 deletions

View File

@ -88,15 +88,8 @@ else {
my $iTotalRecords = '';
my $sth = '';
if (my $filter = $params->{'sSearch'}) {
# This seems a bit brute force and ungraceful, but it provides a very general, simple search on all fields
$iTotalRecords = $dbh->selectrow_array("SELECT count(*) FROM quotes WHERE id LIKE %?% OR source LIKE %?% OR text LIKE %?% OR timestamp LIKE %?%;",undef,($filter, $filter, $filter, $filter));
$sth = $dbh->prepare("SELECT * FROM quotes;");
}
else {
$iTotalRecords = $dbh->selectrow_array('SELECT count(*) FROM quotes;');
$sth = $dbh->prepare("SELECT * FROM quotes;");
}
$iTotalRecords = $dbh->selectrow_array('SELECT count(*) FROM quotes;');
$sth = $dbh->prepare("SELECT * FROM quotes;");
$sth->execute();
if ($sth->err) {