Browse Source

datadirectory si erreur de syntaxe

10504
fredtempez 7 months ago
parent
commit
0e4d1ed570
  1. 5
      core/class/helper.class.php

5
core/class/helper.class.php

@ -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'];

Loading…
Cancel
Save