[Fusionforge-commits] r12301 - trunk/src/common/docman/actions

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


Author: nerville
Date: 2011-02-18 17:30:17 +0100 (Fri, 18 Feb 2011)
New Revision: 12301

Modified:
   trunk/src/common/docman/actions/emptytrash.php
Log:
do not delete the .trash directory in emptytrash action

Modified: trunk/src/common/docman/actions/emptytrash.php
===================================================================
--- trunk/src/common/docman/actions/emptytrash.php	2011-02-18 16:27:32 UTC (rev 12300)
+++ trunk/src/common/docman/actions/emptytrash.php	2011-02-18 16:30:17 UTC (rev 12301)
@@ -38,7 +38,7 @@
 if (!$emptyFile)
 	session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode(db_error()));
 
-$emptyDir = db_query_params('DELETE FROM doc_groups WHERE stateid=$1 and group_id=$2',array('2',$group_id));
+$emptyDir = db_query_params('DELETE FROM doc_groups WHERE stateid=$1 and group_id=$2 and groupname !=$3',array('2',$group_id));
 if (!$emptyDir)
 	session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode(db_error()));
 




More information about the Fusionforge-commits mailing list