Fix reported PHP notices on export save preview

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-03-31 00:57:00 +02:00
parent aa0c22959d
commit a3e725a347
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -46,9 +46,9 @@ final class ExportTemplateController extends AbstractController
$template = ExportTemplate::fromArray([ $template = ExportTemplate::fromArray([
'username' => $cfg['Server']['user'], 'username' => $cfg['Server']['user'],
'exportType' => $_POST['exportType'], 'exportType' => $_POST['exportType'] ?? '',
'name' => $_POST['templateName'], 'name' => $_POST['templateName'] ?? '',
'data' => $_POST['templateData'], 'data' => $_POST['templateData'] ?? '',
]); ]);
$result = $this->model->create($cfgRelation['db'], $cfgRelation['export_templates'], $template); $result = $this->model->create($cfgRelation['db'], $cfgRelation['export_templates'], $template);