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

commit 36fe4180180fbcddffcc127b7e517b7cc5fa4476
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Sat May 1 23:25:58 2021 +0200

    fix PHP warning

diff --git a/src/common/docman/DocumentGroup.class.php 
b/src/common/docman/DocumentGroup.class.php
index 19e62e9..fefda98 100644
--- a/src/common/docman/DocumentGroup.class.php
+++ b/src/common/docman/DocumentGroup.class.php
@@ -38,7 +38,7 @@ $DOCUMENTGROUP_OBJ = array();
  *
  * @param      int             $docgroup_id    The ID of the document group - 
required
  * @param      int             $group_id       Group ID of the project - 
required
- * @param      int|bool        $res    The result set handle ("SELECT * FROM 
doc_groups WHERE doc_group = $1")
+ * @param      int|bool        $res            The result set handle ("SELECT 
* FROM doc_groups WHERE doc_group = $1")
  * @return     DocumentGroup   a document group object or false on failure
  */
 function &documentgroup_get_object($docgroup_id, $group_id, $res = false) {
@@ -368,7 +368,10 @@ class DocumentGroup extends FFError {
         * @access      public
         */
        function getState() {
-               return $this->data_array['stateid'];
+               if (isset($this->data_array['stateid'])) {
+                       return $this->data_array['stateid'];
+               }
+               return 0;
        }
 
        /**

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

Summary of changes:
 src/common/docman/DocumentGroup.class.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
Fusionforge-commits@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to