summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-02-04 11:00:20 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-08 19:18:26 +0100
commit555cdac2db5ebab48ef8abf66488fd27fb500aa7 (patch)
treeb0c2d97583b2ec98a9fa7b0722414601cbb1fc8f /web/lib/pkgfuncs.inc.php
parent7d7e07932677eaf584e593af6868eab89c711b8b (diff)
downloadaur-555cdac2db5ebab48ef8abf66488fd27fb500aa7.tar.gz
aur-555cdac2db5ebab48ef8abf66488fd27fb500aa7.tar.xz
Return the number of results in pkg_search_page()
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index ee4ca525..063cc935 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -649,7 +649,7 @@ function pkg_display_details($id=0, $row, $SID="") {
* @param bool $show_headers True if statistics should be included
* @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="") {
$dbh = DB::connect();
@@ -860,7 +860,7 @@ function pkg_search_page($params, $show_headers=true, $SID="") {
include('pkg_search_results.php');
- return;
+ return $total;
}
/**