Fix: no error if directory is not empty

This commit is contained in:
Regis Houssin 2009-10-22 09:54:46 +00:00
parent 1a5e82ce45
commit d9438463fe

View File

@ -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 = '<div class="ok">'.$langs->trans("DirWasRemoved",$file).'</div>';