From 898a4bfca78c4f21b63ad84eec60aa1468fd0cc6 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 19 Aug 2000 15:08:48 +0000 Subject: [PATCH] Fixed the search capability --- admin/nntp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/nntp.php b/admin/nntp.php index d567f7afa4..9b007c803c 100755 --- a/admin/nntp.php +++ b/admin/nntp.php @@ -86,10 +86,10 @@ else $query_result++; $phpgw->db->query("SELECT con FROM newsgroups " - ."WHERE name LIKE '%".$query."%'$orderby LIMIT " + ."WHERE name LIKE '%$query%'$orderby LIMIT " .$phpgw->nextmatchs->sql_limit($query_result)); $phpgw->db->next_record(); - $start = $phpgw->db->f("con"); + $start = $phpgw->db->f("con") - 1; } $urlname = $phpgw_info["server"]["webserver_url"]."/admin/nntp.php";