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  606f0bda20b7199df212a266152f3c571714dcce (commit)
       via  29706ef999aae86f97e454f72350696e65ebe4d4 (commit)
      from  c974c9819ffe06b61fc8ccb7b666e9ccdc59c382 (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=606f0bda20b7199df212a266152f3c571714dcce

commit 606f0bda20b7199df212a266152f3c571714dcce
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Sat May 1 22:03:24 2021 +0200

    fix var initialization

diff --git a/src/common/docman/include/webdav.php 
b/src/common/docman/include/webdav.php
index 7408c96..4f6b32d 100644
--- a/src/common/docman/include/webdav.php
+++ b/src/common/docman/include/webdav.php
@@ -104,10 +104,9 @@ class HTTP_WebDAV_Server_Docman extends HTTP_WebDAV_Server 
{
                }
 
                $analysed_path = $this->analyse($subpath, $group_id);
-
+               $path = rtrim($options['path'], '/');
                if ($analysed_path['isdir']) {
                        $i = 0;
-                       $path = rtrim($options['path'], '/');
                        $res = db_query_params('select * from doc_groups where 
group_id = $1 and doc_group = $2 and stateid = ANY ($3)',
                                                array($group_id, 
$analysed_path['doc_group'], db_int_array_to_any_clause(array(1, 5))));
                        if (!$res) {

https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=29706ef999aae86f97e454f72350696e65ebe4d4

commit 29706ef999aae86f97e454f72350696e65ebe4d4
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Sat May 1 22:03:06 2021 +0200

    remove unused code

diff --git a/src/common/docman/DocumentVersion.class.php 
b/src/common/docman/DocumentVersion.class.php
index 8852dd9..a0649af 100644
--- a/src/common/docman/DocumentVersion.class.php
+++ b/src/common/docman/DocumentVersion.class.php
@@ -45,16 +45,6 @@ function &documentversion_get_object($ver_id, $docid, 
$group_id, $res = false) {
        return $DOCUMENTVERSION_OBJ['_'.$ver_id.'-'.$docid.'_'];
 }
 
-function &documentversion_get_object_by_serialid($serial_id, $docid, 
$group_id, $res = false) {
-       $res = db_query_params('SELECT serial_id, version, docid, 
current_version, title, updatedate, createdate, created_by, description, 
filename, filetype, filesize FROM doc_data_version WHERE serial_id = $1 AND 
docid = $2',
-                                               array($serial_id, $docid));
-       if ($res && (db_numrows($res) == 1)) {
-               $arr = db_fetch_array($res);
-               return documentversion_get_object($arr['version'], $docid, 
$group_id, $res);
-       }
-       return false;
-}
-
 class DocumentVersion extends FFError {
        /**
         * Associative array of data from db.

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

Summary of changes:
 src/common/docman/DocumentVersion.class.php | 10 ----------
 src/common/docman/include/webdav.php        |  3 +--
 2 files changed, 1 insertion(+), 12 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