mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Check if formatter key exist
This commit is contained in:
parent
a31e3ad6f6
commit
c8507b4a13
@ -567,11 +567,15 @@ class ExportManager
|
||||
* get the formatter alias from the form export data
|
||||
*
|
||||
* @param array $data the data from the export form
|
||||
* @string the formatter alias
|
||||
* @string the formatter alias|null
|
||||
*/
|
||||
public function getFormatterAlias(array $data)
|
||||
{
|
||||
return $data[ExportType::PICK_FORMATTER_KEY]['alias'];
|
||||
if (array_key_exists(ExportType::PICK_FORMATTER_KEY, $data)) {
|
||||
return $data[ExportType::PICK_FORMATTER_KEY]['alias'];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user