mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
Check if formatter key exist
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user