Fix reported PHP notices on export save preview
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
aa0c22959d
commit
a3e725a347
@ -46,9 +46,9 @@ final class ExportTemplateController extends AbstractController
|
||||
|
||||
$template = ExportTemplate::fromArray([
|
||||
'username' => $cfg['Server']['user'],
|
||||
'exportType' => $_POST['exportType'],
|
||||
'name' => $_POST['templateName'],
|
||||
'data' => $_POST['templateData'],
|
||||
'exportType' => $_POST['exportType'] ?? '',
|
||||
'name' => $_POST['templateName'] ?? '',
|
||||
'data' => $_POST['templateData'] ?? '',
|
||||
]);
|
||||
$result = $this->model->create($cfgRelation['db'], $cfgRelation['export_templates'], $template);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user