From 5c6129687b2d76f66a2393de4e12ff8d4efaaa8e Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Fri, 11 May 2012 07:42:06 -0400 Subject: [PATCH] Bug 7977: Removing unused code from quotes_ajax.pl Signed-off-by: Jared Camins-Esakov Signed-off-by: Mason James --- tools/quotes/quotes_ajax.pl | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl index bcc4f2e567..926fe9d488 100755 --- a/tools/quotes/quotes_ajax.pl +++ b/tools/quotes/quotes_ajax.pl @@ -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) { -- 2.39.2