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  087cb50f35662dd8a767dc31901317e204c4acbc (commit)
      from  d90d893eed2526e0f45db8dc1cff15e7b4f012ea (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=087cb50f35662dd8a767dc31901317e204c4acbc

commit 087cb50f35662dd8a767dc31901317e204c4acbc
Author: Franck Villaume <[email protected]>
Date:   Sat May 1 23:02:59 2021 +0200

    fix PHP warning

diff --git a/src/common/docman/DocumentFactory.class.php 
b/src/common/docman/DocumentFactory.class.php
index 6f49f10..71f431c 100644
--- a/src/common/docman/DocumentFactory.class.php
+++ b/src/common/docman/DocumentFactory.class.php
@@ -420,7 +420,7 @@ class DocumentFactory extends FFError {
 
                while ($arr = db_fetch_array($result)) {
                        $doc_group_id = $arr['doc_group'];
-                       if (!is_array(@$this->Documents[$doc_group_id])) {
+                       if (isset($this->Documents[$doc_group_id]) && 
!is_array($this->Documents[$doc_group_id])) {
                                $this->Documents[$doc_group_id] = array();
                        }
                        $this->Documents[$doc_group_id][] = new 
Document($this->Group, $arr['docid'], $arr);

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

Summary of changes:
 src/common/docman/DocumentFactory.class.php | 2 +-
 1 file changed, 1 insertion(+), 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