Fix: Bad action reset
This commit is contained in:
parent
190bcf61e4
commit
95b976c3d5
@ -150,8 +150,10 @@ if ($action == 'add' && $user->rights->ecm->setup)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove file
|
// Remove file
|
||||||
if ($action == 'confirm_deletefile' && GETPOST('confirm') == 'yes')
|
if ($action == 'confirm_deletefile')
|
||||||
{
|
{
|
||||||
|
if (GETPOST('confirm') == 'yes')
|
||||||
|
{
|
||||||
$result=$ecmdir->fetch($section);
|
$result=$ecmdir->fetch($section);
|
||||||
if (! $result > 0)
|
if (! $result > 0)
|
||||||
{
|
{
|
||||||
@ -167,9 +169,10 @@ if ($action == 'confirm_deletefile' && GETPOST('confirm') == 'yes')
|
|||||||
$mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>';
|
$mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>';
|
||||||
|
|
||||||
$result=$ecmdir->changeNbOfFiles('-');
|
$result=$ecmdir->changeNbOfFiles('-');
|
||||||
$action='file_manager';
|
|
||||||
|
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
}
|
||||||
|
$action='file_manager';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove directory
|
// Remove directory
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user