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, master has been updated
       via  014c1f99be90d492f8a3fccd9b2a060c0045b198 (commit)
      from  64e55423a5dc384e05fb083097ec35db2bcf2371 (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=014c1f99be90d492f8a3fccd9b2a060c0045b198

commit 014c1f99be90d492f8a3fccd9b2a060c0045b198
Author: Franck Villaume <[email protected]>
Date:   Fri Mar 25 19:31:50 2016 +0100

    docman manager: getActivity, wrong var initialization

diff --git a/src/common/docman/DocumentManager.class.php 
b/src/common/docman/DocumentManager.class.php
index 55579a3..a6cb14e 100644
--- a/src/common/docman/DocumentManager.class.php
+++ b/src/common/docman/DocumentManager.class.php
@@ -394,7 +394,9 @@ class DocumentManager extends Error {
         * @return      array   number per section of activities found between 
begin and end values
         */
        function getActivity($sections, $begin, $end) {
+               $results = array();
                for ($i = 0; $i < count($sections); $i++) {
+                       $results[$sections[$i]] = 0;
                        $union = 0;
                        if (count($sections) >= 1 && $i != count($sections) -1) 
{
                                $union = 1;
@@ -410,7 +412,6 @@ class DocumentManager extends Error {
                        }
                }
                $res = db_query_qpa($qpa);
-               $results = array();
                $j = 0;
                while ($arr = db_fetch_array($res)) {
                        $results[$sections[$j]] = $arr['0'];

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

Summary of changes:
 src/common/docman/DocumentManager.class.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to