mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Return the number of results in pkg_search_page()
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
7d7e079326
commit
555cdac2db
1 changed files with 2 additions and 2 deletions
|
@ -649,7 +649,7 @@ function pkg_display_details($id=0, $row, $SID="") {
|
||||||
* @param bool $show_headers True if statistics should be included
|
* @param bool $show_headers True if statistics should be included
|
||||||
* @param string $SID The session ID of the visitor
|
* @param string $SID The session ID of the visitor
|
||||||
*
|
*
|
||||||
* @return void
|
* @return int The total number of packages matching the query
|
||||||
*/
|
*/
|
||||||
function pkg_search_page($params, $show_headers=true, $SID="") {
|
function pkg_search_page($params, $show_headers=true, $SID="") {
|
||||||
$dbh = DB::connect();
|
$dbh = DB::connect();
|
||||||
|
@ -860,7 +860,7 @@ function pkg_search_page($params, $show_headers=true, $SID="") {
|
||||||
|
|
||||||
include('pkg_search_results.php');
|
include('pkg_search_results.php');
|
||||||
|
|
||||||
return;
|
return $total;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue