Skip to content

Commit

Permalink
Fix Uncaught TypeError on php 8.0 when adding a column to table creat…
Browse files Browse the repository at this point in the history
…e form

"Uncaught TypeError: Expected parameter 1 to be an array, null given in tbl_columns_definition_form.inc.php:227"

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Dec 24, 2019
1 parent a6de419 commit 1f817e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/tbl_columns_definition_form.inc.php
Expand Up @@ -217,7 +217,7 @@
);

$mime_map[$columnMeta['Field']] = array_merge(
$mime_map[$columnMeta['Field']],
isset($mime_map[$columnMeta['Field']]) ? $mime_map[$columnMeta['Field']] : [],
array(
'mimetype' => Util::getValueByKey($_POST, "field_mimetype.${$columnNumber}"),
'transformation' => Util::getValueByKey(
Expand Down

0 comments on commit 1f817e8

Please sign in to comment.