From 9a7382de1bbf341f75d36e8aca1e5bb5276960bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Jun 2012 23:31:46 +0200 Subject: [PATCH] Fix: Exclude temp file --- htdocs/core/ajax/ajaxdirtree.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/ajax/ajaxdirtree.php b/htdocs/core/ajax/ajaxdirtree.php index 89345535187..9e823ec2116 100644 --- a/htdocs/core/ajax/ajaxdirtree.php +++ b/htdocs/core/ajax/ajaxdirtree.php @@ -19,7 +19,6 @@ * \file htdocs/core/ajax/ajaxdirtree.php * \ingroup ecm * \brief This script returns content of a directory for filetree - * \version $Id: ajaxFileTree.php,v 1.8 2011/07/06 17:03:41 eldy Exp $ */ @@ -105,6 +104,8 @@ if( file_exists($fullpathselecteddir) ) // All dirs foreach( $files as $file ) // $file can be '.', '..', or 'My dir' or 'My file' { + if ($file == 'temp') continue; + $nbofsubdir=0; $nboffilesinsubdir=0;