datadirectory si erreur de syntaxe

This commit is contained in:
fredtempez 2021-02-18 12:32:28 +01:00
parent af72107c79
commit 0e4d1ed570

View File

@ -170,7 +170,10 @@ class helper {
$delete = true;
}
// Constante DATADIRECTORY
if (array_key_exists('DATADIRECTORY', $class_constants)) {
if ( array_key_exists('DATADIRECTORY', $class_constants)
&& $class_constants['DATADIRECTORY'] !== []
&& is_array($class_constants['DATADIRECTORY'])
) {
$dataDirectory = $value::DATADIRECTORY;
} else {
$dataDirectory = ['fr/module.json'];