Fix: no error if directory is not empty
This commit is contained in:
parent
1a5e82ce45
commit
d9438463fe
@ -212,7 +212,7 @@ if ($_REQUEST['action'] == 'confirm_deletesection' && $_REQUEST['confirm'] == 'y
|
|||||||
$remotefile=$section.(preg_match('@[\\\/]$@',$section)?'':'/').$file;
|
$remotefile=$section.(preg_match('@[\\\/]$@',$section)?'':'/').$file;
|
||||||
$newremotefileiso=utf8_decode($remotefile);
|
$newremotefileiso=utf8_decode($remotefile);
|
||||||
|
|
||||||
$result=ftp_rmdir($conn_id, $newremotefileiso);
|
$result=@ftp_rmdir($conn_id, $newremotefileiso);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$mesg = '<div class="ok">'.$langs->trans("DirWasRemoved",$file).'</div>';
|
$mesg = '<div class="ok">'.$langs->trans("DirWasRemoved",$file).'</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user