[Fusionforge-commits] r12303 - trunk/src/common/docman/views

Franck VILLAUME nerville at fusionforge.org
Fri Feb 18 17:34:49 CET 2011


Author: nerville
Date: 2011-02-18 17:34:48 +0100 (Fri, 18 Feb 2011)
New Revision: 12303

Modified:
   trunk/src/common/docman/views/listtrashfile.php
Log:
.trash does not count as trash directory

Modified: trunk/src/common/docman/views/listtrashfile.php
===================================================================
--- trunk/src/common/docman/views/listtrashfile.php	2011-02-18 16:32:33 UTC (rev 12302)
+++ trunk/src/common/docman/views/listtrashfile.php	2011-02-18 16:34:48 UTC (rev 12303)
@@ -69,7 +69,8 @@
 	}
 }
 
-if ((!$d_arr || count($d_arr) < 1) && (!$nested_groups || count($nested_groups) < 1)) {
+// $nested_groups has a system directory : .trash => so count < 2
+if ((!$d_arr || count($d_arr) < 1) && (!$nested_groups || count($nested_groups) < 2)) {
 	echo '<div class="warning">'._('Trash is empty').'</div>';
 } else {
 	echo '<div style="padding:5px;"><form id="emptytrash" name="emptytrash" method="post" action="?group_id='.$group_id.'&action=emptytrash" >';




More information about the Fusionforge-commits mailing list