bugfix/HOR-2067

This commit is contained in:
Paula Quispe
2017-03-21 15:02:53 -04:00
parent 3ebf5eea42
commit 873c8d0723
5 changed files with 28 additions and 4 deletions

View File

@@ -103,6 +103,11 @@ try {
$arrayVariableDocumentToDelete = [];
//If didn't is not submitted any variable and the $_POST is empty
if (!isset($_POST['form'])) {
$_POST['form'] = array();
}
if (array_key_exists('__VARIABLE_DOCUMENT_DELETE__', $_POST['form'])) {
if (is_array($_POST['form']['__VARIABLE_DOCUMENT_DELETE__']) && !empty($_POST['form']['__VARIABLE_DOCUMENT_DELETE__'])) {
$arrayVariableDocumentToDelete = $_POST['form']['__VARIABLE_DOCUMENT_DELETE__'];