Merge pull request #88 from tomolimo/3.5/bugfixes
Added a test to be sure that $_FILES['form']['name'] is existing
This commit is contained in:
@@ -2420,8 +2420,8 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
|
||||
$data = http_formdata_flat_hierarchy( $request );
|
||||
// check if any files are in the $_FILES global array
|
||||
// and add them to the curl POST
|
||||
$fileForm = $_FILES['form']['name'];
|
||||
if (!empty($fileForm[array_keys($fileForm)[0]][1][array_keys($fileForm[array_keys($fileForm)[0]][1])[0]])) {
|
||||
$fileForm = isset($_FILES['form']['name']) ? $_FILES['form']['name'] : null;
|
||||
if (isset($fileForm) && !empty($fileForm[array_keys($fileForm)[0]][1][array_keys($fileForm[array_keys($fileForm)[0]][1])[0]])) {
|
||||
foreach ($_FILES['form']['name'] as $key => $file) {
|
||||
if (is_array($file)) {
|
||||
// it's a grid which contains documents
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
<compatibility>9.1</compatibility>
|
||||
</version>
|
||||
<version>
|
||||
<num>3.4.9</num>
|
||||
<num>3.4.10</num>
|
||||
<compatibility>9.2</compatibility>
|
||||
</version>
|
||||
<version>
|
||||
<num>3.5.1</num>
|
||||
<num>3.5.2</num>
|
||||
<compatibility>9.3</compatibility>
|
||||
</version>
|
||||
</versions>
|
||||
|
||||
Reference in New Issue
Block a user