Mise à jour de 'core/class/helper.class.php'

This commit is contained in:
SylvainLelievre 2021-04-06 17:19:39 +02:00
parent e90da78bad
commit 2ad1036a7f

View File

@ -177,13 +177,10 @@ class helper {
$delete = true; $delete = true;
} }
// Constante DATADIRECTORY // 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; $dataDirectory = $value::DATADIRECTORY;
} else { } else {
$dataDirectory = []; $dataDirectory = '';
} }
// Affection // Affection
$modules [$value] = [ $modules [$value] = [