From d9438463fe62b7fad6e173cde2b5061dd4c7e510 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 22 Oct 2009 09:54:46 +0000 Subject: [PATCH] Fix: no error if directory is not empty --- htdocs/ftp/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/ftp/index.php b/htdocs/ftp/index.php index d74e5a8b46b..5ff4356820c 100644 --- a/htdocs/ftp/index.php +++ b/htdocs/ftp/index.php @@ -212,7 +212,7 @@ if ($_REQUEST['action'] == 'confirm_deletesection' && $_REQUEST['confirm'] == 'y $remotefile=$section.(preg_match('@[\\\/]$@',$section)?'':'/').$file; $newremotefileiso=utf8_decode($remotefile); - $result=ftp_rmdir($conn_id, $newremotefileiso); + $result=@ftp_rmdir($conn_id, $newremotefileiso); if ($result) { $mesg = '
'.$langs->trans("DirWasRemoved",$file).'
';