Fix add protection to avoid deletion of page when deleting a file
This commit is contained in:
parent
cdf1d37a1d
commit
ff5f371428
@ -1231,7 +1231,7 @@ if ($action == 'confirm_deletesite' && $confirm == 'yes' && $permissiontodelete)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete page (from website page menu)
|
// Delete page (from website page menu)
|
||||||
if (GETPOSTISSET('pageid') && $action == 'delete' && $permissiontodelete) {
|
if (GETPOSTISSET('pageid') && $action == 'delete' && $permissiontodelete && !GETPOST('file_manager')) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user