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 cf6b9bc7bd0f464c0b463a355f693b835a9a6ad4 (commit)
from db787f9fcd3d00421b3b4e43523352ee4d9addcc (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=cf6b9bc7bd0f464c0b463a355f693b835a9a6ad4
commit cf6b9bc7bd0f464c0b463a355f693b835a9a6ad4
Author: Franck Villaume <[email protected]>
Date: Wed Jun 22 08:39:35 2016 +0200
docman: fix PHP warning
diff --git a/src/common/docman/DocumentFactory.class.php
b/src/common/docman/DocumentFactory.class.php
index 1892af1..27da490 100644
--- a/src/common/docman/DocumentFactory.class.php
+++ b/src/common/docman/DocumentFactory.class.php
@@ -301,7 +301,7 @@ class DocumentFactory extends FFError {
* @return array Document objects.
* @access public
*/
- function &getDocuments($nocache = 0) {
+ function getDocuments($nocache = 0) {
if (!$this->Documents || $nocache) {
$this->getFromStorage();
}
diff --git a/src/common/docman/views/listfile.php
b/src/common/docman/views/listfile.php
index 60e6d8e..c186484 100644
--- a/src/common/docman/views/listfile.php
+++ b/src/common/docman/views/listfile.php
@@ -94,7 +94,7 @@ $df->setDocGroupID($dirid);
//active, hidden & private state ids
$df->setStateID(array(1, 4, 5));
$df->setDocGroupState($stateIdDg);
-$d_arr =& $df->getDocuments();
+$d_arr = $df->getDocuments();
$nested_groups = $dgf->getNested($stateidArr);
$nested_docs = array();
@@ -133,7 +133,7 @@ if (is_array($d_arr) && count($d_arr) > 0) {
}
$df->setStateID(array(3));
-$d_pending_arr =& $df->getDocuments();
+$d_pending_arr = $df->getDocuments();
if (is_array($d_pending_arr) && count($d_pending_arr) > 0) {
// Get the document groups info
diff --git a/src/common/docman/views/listtrashfile.php
b/src/common/docman/views/listtrashfile.php
index a82ede0..31d362a 100644
--- a/src/common/docman/views/listtrashfile.php
+++ b/src/common/docman/views/listtrashfile.php
@@ -68,7 +68,7 @@ if ($dgf->isError())
$df->setStateID(array(2));
$df->setDocGroupState(2);
-$d_arr =& $df->getDocuments();
+$d_arr = $df->getDocuments();
$nested_docs = array();
$DocGroupName = 0;
-----------------------------------------------------------------------
Summary of changes:
src/common/docman/DocumentFactory.class.php | 2 +-
src/common/docman/views/listfile.php | 4 ++--
src/common/docman/views/listtrashfile.php | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits