[Fusionforge-commits] FusionForge branch 6.1 updated. v6.1alpha0-80-g613ae9b

Franck Villaume nerville at libremir.placard.fr.eu.org
Fri Dec 1 13:40:44 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, 6.1 has been updated
       via  613ae9ba8020e671e942ab2f0697785d79c40f62 (commit)
      from  d23944dbb1255ddc5ca844ad46a8baedc422a3c9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=613ae9ba8020e671e942ab2f0697785d79c40f62

commit 613ae9ba8020e671e942ab2f0697785d79c40f62
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Fri Dec 1 12:40:38 2017 +0000

    fix missing paging on userlist.php

diff --git a/src/common/include/FusionForge.class.php b/src/common/include/FusionForge.class.php
index 4fce4ea..443e47c 100644
--- a/src/common/include/FusionForge.class.php
+++ b/src/common/include/FusionForge.class.php
@@ -201,7 +201,11 @@ class FusionForge extends FFError {
                 	$qpa = db_construct_qpa($qpa, ' AND status = $1', array($params['status']));
         	}
         	$res = db_query_qpa($qpa);
-
+		if (!$res || db_numrows($res) < 1) {
+			$this->setError('Unable to get users count: '.db_error());
+			return false;
+		}
+		return $this->parseCount($res);
 	}
 
 	function parseCount($res) {

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/FusionForge.class.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list