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  6ba393e489f8bded9c744b9deef7630828d90f58 (commit)
      from  03f969b79a9d4c096c921f729570d8e4897fb937 (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=6ba393e489f8bded9c744b9deef7630828d90f58

commit 6ba393e489f8bded9c744b9deef7630828d90f58
Author: Marc-Etienne Vargenau <[email protected]>
Date:   Fri Aug 4 14:35:56 2017 +0200

    Use array() instead of false

diff --git a/src/common/frs/FRSFile.class.php b/src/common/frs/FRSFile.class.php
index c564183..9753dd9 100644
--- a/src/common/frs/FRSFile.class.php
+++ b/src/common/frs/FRSFile.class.php
@@ -29,10 +29,10 @@ require_once $gfcommon.'include/FFError.class.php';
  * Factory method which creates a FRSFile from an file id
  *
  * @param      int             $file_id        The file id
- * @param      array|bool      $data           The result array, if it's 
passed in
- * @return     object          FRSFile object
+ * @param      array   $data           The result array, if it's passed in
+ * @return     object|bool             FRSFile object, false in case of error
  */
-function &frsfile_get_object($file_id, $data=false) {
+function &frsfile_get_object($file_id, $data = array()) {
        global $FRSFILE_OBJ;
        if (!isset($FRSFILE_OBJ['_'.$file_id.'_'])) {
                if ($data) {
@@ -70,9 +70,9 @@ class FRSFile extends FFError {
        /**
         * @param       object          $FRSRelease     The FRSRelease object 
to which this file is associated.
         * @param       int|bool        $file_id        The file_id.
-        * @param       array|bool      $arr            The associative array 
of data.
+        * @param       array           $arr            The associative array 
of data.
         */
-       function __construct(&$FRSRelease, $file_id=false, $arr=false) {
+       function __construct(&$FRSRelease, $file_id=false, $arr=array()) {
                parent::__construct();
                if (!$FRSRelease || !is_object($FRSRelease)) {
                        $this->setError(_('Invalid FRS Release Object'));

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

Summary of changes:
 src/common/frs/FRSFile.class.php | 10 +++++-----
 1 file changed, 5 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