From b1342e1869a8a2b50b2a8e06071399662f15676a Mon Sep 17 00:00:00 2001 From: vyshane Date: Thu, 14 Sep 2006 08:57:41 +0000 Subject: [PATCH] Minor formatting tidyup --- mod/forum/lib.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index b854df2b54..30fc460c21 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1200,7 +1200,6 @@ function forum_get_readable_forums($userid, $courseid=0) { /** * Returns a list of posts found using an array of search terms. - * e.g. word +word -word * @param $searchterms - array of search terms, e.g. word +word -word * @param $courseid - if 0, we search through the whole site * @param $page @@ -1295,8 +1294,6 @@ function forum_search_posts($searchterms, $courseid=0, $page=0, $recordsperpage= FROM $fromsql WHERE $selectsql"; - $totalcount = count_records_sql($countsql); - $searchsql = "SELECT p.*, d.forum, u.firstname, @@ -1307,9 +1304,9 @@ function forum_search_posts($searchterms, $courseid=0, $page=0, $recordsperpage= WHERE $selectsql ORDER BY p.modified DESC"; - //print_object($countsql); // Debug. - //print_object($searchsql); + //print_object($searchsql); // Debug. + $totalcount = count_records_sql($countsql); return get_records_sql($searchsql, $page, $recordsperpage); } -- 2.39.5