Browse Source

Fix modulelName error

10501
Fred Tempez 2 months ago
parent
commit
0658c6a9bc
  1. 6
      core/module/addon/addon.php

6
core/module/addon/addon.php

@ -149,8 +149,10 @@ class addon extends common {
if ( is_dir( $moduleDir )) {
// Lire le nom du module
if ($dh = opendir( $moduleDir )) {
while (($file = readdir($dh)) !== false) {
$moduleName = $file;
while ( false !== ($file = readdir($dh)) ) {
if ($file != "." && $file != "..") {
$moduleName = $file;
}
}
closedir($dh);
}

Loading…
Cancel
Save