[Fusionforge-commits] FusionForge branch master updated. cfb15dfcb6a6cda6e10d0021d1dab73fab41a0a2

Franck VILLAUME nerville at fusionforge.org
Mon Feb 24 09:14:37 CET 2014


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  cfb15dfcb6a6cda6e10d0021d1dab73fab41a0a2 (commit)
      from  c8bbf61e5c11d9b30d8ad5689f3183daa29a210b (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 -----------------------------------------------------------------
commit cfb15dfcb6a6cda6e10d0021d1dab73fab41a0a2
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Mon Feb 24 09:14:01 2014 +0100

    docman: DocumentManager, fix php warning, display only real files

diff --git a/src/common/docman/DocumentManager.class.php b/src/common/docman/DocumentManager.class.php
index dd41f0a..0d89257 100644
--- a/src/common/docman/DocumentManager.class.php
+++ b/src/common/docman/DocumentManager.class.php
@@ -337,9 +337,13 @@ class DocumentManager extends Error {
 				$df = new DocumentFactory($doc_group->getGroup());
 				$df->setDocGroupID($doc_group->getID());
 				$docs = $df->getDocuments();
-				foreach ($docs as $doc) {
-					$id_array[] = $doc->getID();
-					$text_array[] = $margin.$doc_group->getName().'/'.$doc->getFileName();
+				if (is_array($docs)) {
+					foreach ($docs as $doc) {
+						if (!$doc->isURL()) {
+							$id_array[] = $doc->getID();
+							$text_array[] = $margin.$doc_group->getName().'/'.$doc->getFileName();
+						}
+					}
 				}
 			}
 			// Show childs (if any)

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

Summary of changes:
 src/common/docman/DocumentManager.class.php |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list