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  e0681fe002b458fe8fdbdb0d82db24d5aaa75732 (commit)
      from  8a15ff287d9b7b648052597e722ae1d92b10100b (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=e0681fe002b458fe8fdbdb0d82db24d5aaa75732

commit e0681fe002b458fe8fdbdb0d82db24d5aaa75732
Author: Franck Villaume <[email protected]>
Date:   Mon Apr 19 17:08:27 2021 +0200

    fix PHP warnings

diff --git a/src/common/tracker/ArtifactQuery.class.php 
b/src/common/tracker/ArtifactQuery.class.php
index 8cb04e9..bc04abd 100644
--- a/src/common/tracker/ArtifactQuery.class.php
+++ b/src/common/tracker/ArtifactQuery.class.php
@@ -7,6 +7,7 @@
  * Copyright 2009, Roland Mas
  * Copyright 2009, Alcatel-Lucent
  * Copyright 2016, Stéphane-Eymeric Bredthauer - TrivialDev
+ * Copyright 2021, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -521,7 +522,10 @@ class ArtifactQuery extends FFError {
         * @return      int     The id #.
         */
        function getID() {
-               return $this->data_array['artifact_query_id'];
+               if (isset($this->data_array['artifact_query_id'])) {
+                       return $this->data_array['artifact_query_id'];
+               }
+               return null;
        }
 
        /**
@@ -530,7 +534,10 @@ class ArtifactQuery extends FFError {
         * @return      string  The name.
         */
        function getName() {
-               return $this->data_array['query_name'];
+               if (isset($this->data_array['query_name'])) {
+                       return $this->data_array['query_name'];
+               }
+               return '';
        }
 
        /**
@@ -548,7 +555,10 @@ class ArtifactQuery extends FFError {
         * @return      string  type of query (0: private, 1: project, 2: 
project&default)
         */
        function getQueryType() {
-               return $this->data_array['query_type'];
+               if (isset($this->data_array['query_type'])) {
+                       return $this->data_array['query_type'];
+               }
+               return null;
        }
 
        /**
@@ -769,8 +779,8 @@ class ArtifactQuery extends FFError {
         * @param       string          $last_modifier
         * @return      bool            success.
         */
-       function 
update($name,$status,$assignee,$moddaterange,$sort_col,$sort_ord,$extra_fields,$opendaterange='',$closedaterange='',
-               
$summary,$description,$followups,$query_type=0,$query_options=array(),$submitter='',$last_modifier='')
 {
+       function update($name, $status, $assignee, $moddaterange, $sort_col, 
$sort_ord, $extra_fields, $opendaterange = '', $closedaterange = '',
+               $summary = '', $description = '', $followups = '', $query_type 
= 0, $query_options = array(), $submitter = '', $last_modifier = '') {
                if (!$name) {
                        $this->setMissingParamsError();
                        return false;

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

Summary of changes:
 src/common/tracker/ArtifactQuery.class.php | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
FusionForge

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

Reply via email to