[aur-dev] [PATCH 2/3] Return the number of results in pkg_search_page()

Lukas Fleischer lfleischer at archlinux.org
Sat Feb 4 10:21:08 UTC 2017


Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/lib/pkgfuncs.inc.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index ee4ca52..063cc93 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;
 }
 
 /**
-- 
2.11.1


More information about the aur-dev mailing list